Security Configuration Assessment Report
for puntawo2

  • CIS-CAT Host IP Address: 127.0.1.1

CIS Ubuntu Linux 16.04 LTS Benchmark v1.0.0

  • Level 1 - Server
  • Monday, February 13 2017 20:11:51

Report generated by the Center for Internet Security's Configuration Assessment Tool (CIS-CAT) v3.0.33.

For further information, please visit The Center for Internet Security or send an e-mail to feedback@cisecurity.org.

Copyright ©2017, The Center for Internet Security

Summary

Description Tests Scoring
Pass Fail Error Unkn. Score Max Percent
1 Initial Setup 19 10 0 0 19.0 29.0 66%
1.1 Filesystem Configuration 14 5 0 0 14.0 19.0 74%
1.1.1 Disable unused filesystems 6 2 0 0 6.0 8.0 75%
1.2 Configure Software Updates 0 0 0 0 0.0 0.0 0%
1.3 Filesystem Integrity Checking 0 2 0 0 0.0 2.0 0%
1.4 Secure Boot Settings 0 2 0 0 0.0 2.0 0%
1.5 Additional Process Hardening 2 1 0 0 2.0 3.0 67%
1.6 Mandatory Access Control 0 0 0 0 0.0 0.0 0%
1.6.1 Configure SELinux 0 0 0 0 0.0 0.0 0%
1.6.2 Configure AppArmor 0 0 0 0 0.0 0.0 0%
1.7 Warning Banners 3 0 0 0 3.0 3.0 100%
1.7.1 Command Line Warning Banners 2 0 0 0 2.0 2.0 100%
2 Services 29 4 0 0 29.0 33.0 88%
2.1 inetd Services 10 0 0 0 10.0 10.0 100%
2.2 Special Purpose Services 15 3 0 0 15.0 18.0 83%
2.2.1 Time Synchronization 2 0 0 0 2.0 2.0 100%
2.3 Service Clients 4 1 0 0 4.0 5.0 80%
3 Network Configuration 10 9 0 0 10.0 19.0 53%
3.1 Network Parameters (Host Only) 1 1 0 0 1.0 2.0 50%
3.2 Network Parameters (Host and Router) 4 4 0 0 4.0 8.0 50%
3.3 IPv6 0 0 0 0 0.0 0.0 0%
3.4 TCP Wrappers 4 1 0 0 4.0 5.0 80%
3.5 Uncommon Network Protocols 0 0 0 0 0.0 0.0 0%
3.6 Firewall Configuration 1 3 0 0 1.0 4.0 25%
4 Logging and Auditing 5 2 0 0 5.0 7.0 71%
4.1 Configure System Accounting (auditd) 0 0 0 0 0.0 0.0 0%
4.1.1 Configure Data Retention 0 0 0 0 0.0 0.0 0%
4.2 Configure Logging 5 2 0 0 5.0 7.0 71%
4.2.1 Configure rsyslog 2 1 0 0 2.0 3.0 67%
4.2.2 Configure syslog-ng 2 0 0 0 2.0 2.0 100%
5 Access, Authentication and Authorization 4 30 0 0 4.0 34.0 12%
5.1 Configure cron 1 7 0 0 1.0 8.0 12%
5.2 SSH Server Configuration 0 15 0 0 0.0 15.0 0%
5.3 Configure PAM 1 2 0 0 1.0 3.0 33%
5.4 User Accounts and Environment 2 5 0 0 2.0 7.0 29%
5.4.1 Set Shadow Password Suite Parameters 1 3 0 0 1.0 4.0 25%
6 System Maintenance 27 4 0 0 27.0 31.0 87%
6.1 System File Permissions 10 1 0 0 10.0 11.0 91%
6.2 User and Group Settings 17 3 0 0 17.0 20.0 85%
Total 94 59 0 0 94.0 153.0 61%

Note: Actual scores are subject to rounding errors. The sum of these values may not result in the exact overall score.

Profiles

This benchmark contains 4 profiles.The Level 1 - Server profile was used for this assessment.

Title Description
Level 1 - Server

Items in this profile intend to:

  • be practical and prudent;
  • provide a clear security benefit; and
  • not inhibit the utility of the technology beyond acceptable means.

This profile is intended for servers.

Show Profile XML
<Profile xmlns="http://checklists.nist.gov/xccdf/1.2"
         xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         id="xccdf_org.cisecurity.benchmarks_profile_Level_1_-_Server">
   <title xml:lang="en">Level 1 - Server</title>
   <description xml:lang="en">
      <p xmlns="http://www.w3.org/1999/xhtml">Items in this profile intend to:</p>
      <ul xmlns="http://www.w3.org/1999/xhtml">
         <li>be practical and prudent;</li>
         <li>provide a clear security benefit; and</li>
         <li>not inhibit the utility of the technology beyond acceptable means.</li>
      </ul>
      <p xmlns="http://www.w3.org/1999/xhtml">This profile is intended for servers.</p>
   </description>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.1_Ensure_mounting_of_cramfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.2_Ensure_mounting_of_freevxfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.3_Ensure_mounting_of_jffs2_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.4_Ensure_mounting_of_hfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.5_Ensure_mounting_of_hfsplus_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.6_Ensure_mounting_of_squashfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.7_Ensure_mounting_of_udf_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.8_Ensure_mounting_of_FAT_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.3_Ensure_nodev_option_set_on_tmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.4_Ensure_nosuid_option_set_on_tmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.7_Ensure_nodev_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.8_Ensure_nosuid_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.9_Ensure_noexec_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.13_Ensure_nodev_option_set_on_home_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.14_Ensure_nodev_option_set_on_devshm_partitiov"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.15_Ensure_nosuid_option_set_on_devshm_partitionrun"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.16_Ensure_noexec_option_set_on_devshm_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.17_Ensure_nodev_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.18_Ensure_nosuid_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.19_Ensure_noexec_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.20_Ensure_sticky_bit_is_set_on_all_world-writable_directories"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.21_Disable_Automounting"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.2.1_Ensure_package_manager_repositories_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.2.2_Ensure_GPG_keys_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.3.1_Ensure_AIDE_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.3.2_Ensure_filesystem_integrity_is_regularly_checked"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.1_Ensure_permissions_on_bootloader_config_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.2_Ensure_bootloader_password_is_set"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.3_Ensure_authentication_required_for_single_user_mode"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.4_Ensure_interactive_boot_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.1_Ensure_core_dumps_are_restricted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.2_Ensure_XDNX_support_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.3_Ensure_address_space_layout_randomization_ASLR_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.4_Ensure_prelink_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.1_Ensure_message_of_the_day_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.2_Ensure_local_login_warning_banner_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.3_Ensure_remote_login_warning_banner_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.4_Ensure_permissions_on_etcmotd_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.5_Ensure_permissions_on_etcissue_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.6_Ensure_permissions_on_etcissue.net_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.2_Ensure_GDM_login_banner_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.8_Ensure_updates_patches_and_additional_security_software_are_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.1_Ensure_chargen_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.2_Ensure_daytime_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.3_Ensure_discard_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.4_Ensure_echo_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.5_Ensure_time_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.6_Ensure_rsh_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.7_Ensure_talk_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.8_Ensure_telnet_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.9_Ensure_tftp_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.10_Ensure_xinetd_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.1_Ensure_time_synchronization_is_in_use"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.2_Ensure_ntp_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.3_Ensure_chrony_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.2_Ensure_X_Window_System_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.3_Ensure_Avahi_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.4_Ensure_CUPS_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.5_Ensure_DHCP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.6_Ensure_LDAP_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.7_Ensure_NFS_and_RPC_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.8_Ensure_DNS_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.9_Ensure_FTP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.10_Ensure_HTTP_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.11_Ensure_IMAP_and_POP3_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.12_Ensure_Samba_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.13_Ensure_HTTP_Proxy_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.14_Ensure_SNMP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.15_Ensure_mail_transfer_agent_is_configured_for_local-only_mode"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.16_Ensure_rsync_service_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.17_Ensure_NIS_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.1_Ensure_NIS_Client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.2_Ensure_rsh_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.3_Ensure_talk_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.4_Ensure_telnet_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.5_Ensure_LDAP_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.1.1_Ensure_IP_forwarding_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.1.2_Ensure_packet_redirect_sending_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.1_Ensure_source_routed_packets_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.2_Ensure_ICMP_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.3_Ensure_secure_ICMP_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.4_Ensure_suspicious_packets_are_logged"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.5_Ensure_broadcast_ICMP_requests_are_ignored"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.6_Ensure_bogus_ICMP_responses_are_ignored"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.7_Ensure_Reverse_Path_Filtering_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.8_Ensure_TCP_SYN_Cookies_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.1_Ensure_IPv6_router_advertisements_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.2_Ensure_IPv6_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.3_Ensure_IPv6_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.1_Ensure_TCP_Wrappers_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.2_Ensure_etchosts.allow_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.3_Ensure_etchosts.deny_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.4_Ensure_permissions_on_etchosts.allow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.5_Ensure_permissions_on_etchosts.deny_are_644"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.1_Ensure_DCCP_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.2_Ensure_SCTP_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.3_Ensure_RDS_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.4_Ensure_TIPC_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.1_Ensure_iptables_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.2_Ensure_default_deny_firewall_policy"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.3_Ensure_loopback_traffic_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.4_Ensure_outbound_and_established_connections_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.5_Ensure_firewall_rules_exist_for_all_open_ports"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.7_Ensure_wireless_interfaces_are_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.1_Ensure_rsyslog_Service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.2_Ensure_logging_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.3_Ensure_rsyslog_default_file_permissions_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.4_Ensure_rsyslog_is_configured_to_send_logs_to_a_remote_log_host"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.5_Ensure_remote_rsyslog_messages_are_only_accepted_on_designated_log_hosts."
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.1_Ensure_syslog-ng_service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.2_Ensure_logging_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.3_Ensure_syslog-ng_default_file_permissions_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.4_Ensure_syslog-ng_is_configured_to_send_logs_to_a_remote_log_host"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.5_Ensure_remote_syslog-ng_messages_are_only_accepted_on_designated_log_hosts"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.3_Ensure_rsyslog_or_syslog-ng_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.4_Ensure_permissions_on_all_logfiles_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.3_Ensure_logrotate_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.1_Ensure_cron_daemon_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.2_Ensure_permissions_on_etccrontab_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.3_Ensure_permissions_on_etccron.hourly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.4_Ensure_permissions_on_etccron.daily_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.5_Ensure_permissions_on_etccron.weekly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.6_Ensure_permissions_on_etccron.monthly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.7_Ensure_permissions_on_etccron.d_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.8_Ensure_atcron_is_restricted_to_authorized_users"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.1_Ensure_permissions_on_etcsshsshd_config_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.2_Ensure_SSH_Protocol_is_set_to_2"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.3_Ensure_SSH_LogLevel_is_set_to_INFO"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.4_Ensure_SSH_X11_forwarding_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.5_Ensure_SSH_MaxAuthTries_is_set_to_4_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.6_Ensure_SSH_IgnoreRhosts_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.7_Ensure_SSH_HostbasedAuthentication_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.8_Ensure_SSH_root_login_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.9_Ensure_SSH_PermitEmptyPasswords_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.10_Ensure_SSH_PermitUserEnvironment_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.11_Ensure_only_approved_MAC_algorithms_are_used"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.12_Ensure_SSH_Idle_Timeout_Interval_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.13_Ensure_SSH_LoginGraceTime_is_set_to_one_minute_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.14_Ensure_SSH_access_is_limited"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.15_Ensure_SSH_warning_banner_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.1_Ensure_password_creation_requirements_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.2_Ensure_lockout_for_failed_password_attempts_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.3_Ensure_password_reuse_is_limited"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.4_Ensure_password_hashing_algorithm_is_SHA-512"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.1_Ensure_password_expiration_is_90_days_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.2_Ensure_minimum_days_between_password_changes_is_7_or_more"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.3_Ensure_password_expiration_warning_days_is_7_or_more"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.4_Ensure_inactive_password_lock_is_30_days_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.2_Ensure_system_accounts_are_non-login"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.3_Ensure_default_group_for_the_root_account_is_GID_0"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.4_Ensure_default_user_umask_is_027_or_more_restrictive"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.5_Ensure_root_login_is_restricted_to_system_console"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.6_Ensure_access_to_the_su_command_is_restricted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.2_Ensure_permissions_on_etcpasswd_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.3_Ensure_permissions_on_etcshadow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.4_Ensure_permissions_on_etcgroup_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.5_Ensure_permissions_on_etcgshadow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.6_Ensure_permissions_on_etcpasswd-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.7_Ensure_permissions_on_etcshadow-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.8_Ensure_permissions_on_etcgroup-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.9_Ensure_permissions_on_etcgshadow-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.10_Ensure_no_world_writable_files_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.11_Ensure_no_unowned_files_or_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.12_Ensure_no_ungrouped_files_or_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.13_Audit_SUID_executables"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.14_Audit_SGID_executables"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.1_Ensure_password_fields_are_not_empty"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.2_Ensure_no_legacy__entries_exist_in_etcpasswd"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.3_Ensure_no_legacy__entries_exist_in_etcshadow"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.4_Ensure_no_legacy__entries_exist_in_etcgroup"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.5_Ensure_root_is_the_only_UID_0_account"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.6_Ensure_root_PATH_Integrity"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.7_Ensure_all_users_home_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.8_Ensure_users_home_directories_permissions_are_750_or_more_restrictive"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.9_Ensure_users_own_their_home_directories"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.10_Ensure_users_dot_files_are_not_group_or_world_writable"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.11_Ensure_no_users_have_.forward_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.12_Ensure_no_users_have_.netrc_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.13_Ensure_users_.netrc_Files_are_not_group_or_world_accessible"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.14_Ensure_no_users_have_.rhosts_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.15_Ensure_all_groups_in_etcpasswd_exist_in_etcgroup"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.16_Ensure_no_duplicate_UIDs_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.17_Ensure_no_duplicate_GIDs_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.18_Ensure_no_duplicate_user_names_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.19_Ensure_no_duplicate_group_names_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.20_Ensure_shadow_group_is_empty"
           selected="true"/>
</Profile>
Level 2 - Server

This profile extends the "Level 1 - Server" profile. Items in this profile exhibit one or more of the following characteristics:

  • are intended for environments or use cases where security is paramount.
  • acts as defense in depth measure.
  • may negatively inhibit the utility or performance of the technology.

This profile is intended for servers.

Show Profile XML
<Profile xmlns="http://checklists.nist.gov/xccdf/1.2"
         xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         id="xccdf_org.cisecurity.benchmarks_profile_Level_2_-_Server">
   <title xml:lang="en">Level 2 - Server</title>
   <description xml:lang="en">
      <p xmlns="http://www.w3.org/1999/xhtml">This profile extends the "Level 1 - Server" profile. Items in this profile exhibit one or more of the following characteristics:</p>
      <ul xmlns="http://www.w3.org/1999/xhtml">
         <li>are intended for environments or use cases where security is paramount.</li>
         <li>acts as defense in depth measure.</li>
         <li>may negatively inhibit the utility or performance of the technology.</li>
      </ul>
      <p xmlns="http://www.w3.org/1999/xhtml">This profile is intended for servers.</p>
   </description>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.1_Ensure_mounting_of_cramfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.2_Ensure_mounting_of_freevxfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.3_Ensure_mounting_of_jffs2_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.4_Ensure_mounting_of_hfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.5_Ensure_mounting_of_hfsplus_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.6_Ensure_mounting_of_squashfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.7_Ensure_mounting_of_udf_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.8_Ensure_mounting_of_FAT_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.2_Ensure_separate_partition_exists_for_tmp"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.3_Ensure_nodev_option_set_on_tmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.4_Ensure_nosuid_option_set_on_tmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.5_Ensure_separate_partition_exists_for_var"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.6_Ensure_separate_partition_exists_for_vartmp"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.7_Ensure_nodev_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.8_Ensure_nosuid_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.9_Ensure_noexec_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.10_Ensure_separate_partition_exists_for_varlog"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.11_Ensure_separate_partition_exists_for_varlogaudit"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.12_Ensure_separate_partition_exists_for_home"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.13_Ensure_nodev_option_set_on_home_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.14_Ensure_nodev_option_set_on_devshm_partitiov"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.15_Ensure_nosuid_option_set_on_devshm_partitionrun"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.16_Ensure_noexec_option_set_on_devshm_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.17_Ensure_nodev_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.18_Ensure_nosuid_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.19_Ensure_noexec_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.20_Ensure_sticky_bit_is_set_on_all_world-writable_directories"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.21_Disable_Automounting"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.2.1_Ensure_package_manager_repositories_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.2.2_Ensure_GPG_keys_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.3.1_Ensure_AIDE_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.3.2_Ensure_filesystem_integrity_is_regularly_checked"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.1_Ensure_permissions_on_bootloader_config_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.2_Ensure_bootloader_password_is_set"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.3_Ensure_authentication_required_for_single_user_mode"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.4_Ensure_interactive_boot_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.1_Ensure_core_dumps_are_restricted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.2_Ensure_XDNX_support_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.3_Ensure_address_space_layout_randomization_ASLR_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.4_Ensure_prelink_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.1.1_Ensure_SELinux_is_not_disabled_in_bootloader_configuration"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.1.2_Ensure_the_SELinux_state_is_enforcing"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.1.3_Ensure_SELinux_policy_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.1.4_Ensure_no_unconfined_daemons_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.2.1_Ensure_AppArmor_is_not_disabled_in_bootloader_configuration"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.2.2_Ensure_all_AppArmor_Profiles_are_enforcing"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.3_Ensure_SELinux_or_AppArmor_are_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.1_Ensure_message_of_the_day_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.2_Ensure_local_login_warning_banner_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.3_Ensure_remote_login_warning_banner_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.4_Ensure_permissions_on_etcmotd_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.5_Ensure_permissions_on_etcissue_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.6_Ensure_permissions_on_etcissue.net_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.2_Ensure_GDM_login_banner_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.8_Ensure_updates_patches_and_additional_security_software_are_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.1_Ensure_chargen_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.2_Ensure_daytime_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.3_Ensure_discard_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.4_Ensure_echo_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.5_Ensure_time_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.6_Ensure_rsh_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.7_Ensure_talk_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.8_Ensure_telnet_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.9_Ensure_tftp_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.10_Ensure_xinetd_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.1_Ensure_time_synchronization_is_in_use"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.2_Ensure_ntp_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.3_Ensure_chrony_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.2_Ensure_X_Window_System_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.3_Ensure_Avahi_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.4_Ensure_CUPS_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.5_Ensure_DHCP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.6_Ensure_LDAP_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.7_Ensure_NFS_and_RPC_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.8_Ensure_DNS_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.9_Ensure_FTP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.10_Ensure_HTTP_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.11_Ensure_IMAP_and_POP3_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.12_Ensure_Samba_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.13_Ensure_HTTP_Proxy_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.14_Ensure_SNMP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.15_Ensure_mail_transfer_agent_is_configured_for_local-only_mode"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.16_Ensure_rsync_service_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.17_Ensure_NIS_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.1_Ensure_NIS_Client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.2_Ensure_rsh_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.3_Ensure_talk_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.4_Ensure_telnet_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.5_Ensure_LDAP_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.1.1_Ensure_IP_forwarding_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.1.2_Ensure_packet_redirect_sending_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.1_Ensure_source_routed_packets_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.2_Ensure_ICMP_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.3_Ensure_secure_ICMP_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.4_Ensure_suspicious_packets_are_logged"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.5_Ensure_broadcast_ICMP_requests_are_ignored"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.6_Ensure_bogus_ICMP_responses_are_ignored"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.7_Ensure_Reverse_Path_Filtering_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.8_Ensure_TCP_SYN_Cookies_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.1_Ensure_IPv6_router_advertisements_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.2_Ensure_IPv6_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.3_Ensure_IPv6_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.1_Ensure_TCP_Wrappers_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.2_Ensure_etchosts.allow_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.3_Ensure_etchosts.deny_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.4_Ensure_permissions_on_etchosts.allow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.5_Ensure_permissions_on_etchosts.deny_are_644"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.1_Ensure_DCCP_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.2_Ensure_SCTP_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.3_Ensure_RDS_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.4_Ensure_TIPC_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.1_Ensure_iptables_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.2_Ensure_default_deny_firewall_policy"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.3_Ensure_loopback_traffic_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.4_Ensure_outbound_and_established_connections_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.5_Ensure_firewall_rules_exist_for_all_open_ports"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.7_Ensure_wireless_interfaces_are_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.1.1_Ensure_audit_log_storage_size_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.1.2_Ensure_system_is_disabled_when_audit_logs_are_full"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.1.3_Ensure_audit_logs_are_not_automatically_deleted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.2_Ensure_auditd_service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.3_Ensure_auditing_for_processes_that_start_prior_to_auditd_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.4_Ensure_events_that_modify_date_and_time_information_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.5_Ensure_events_that_modify_usergroup_information_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.6_Ensure_events_that_modify_the_systems_network_environment_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.7_Ensure_events_that_modify_the_systems_Mandatory_Access_Controls_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.8_Ensure_login_and_logout_events_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.9_Ensure_session_initiation_information_is_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.10_Ensure_discretionary_access_control_permission_modification_events_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.11_Ensure_unsuccessful_unauthorized_file_access_attempts_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.12_Ensure_use_of_privileged_commands_is_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.13_Ensure_successful_file_system_mounts_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.14_Ensure_file_deletion_events_by_users_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.15_Ensure_changes_to_system_administration_scope_sudoers_is_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.16_Ensure_system_administrator_actions_sudolog_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.17_Ensure_kernel_module_loading_and_unloading_is_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.18_Ensure_the_audit_configuration_is_immutable"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.1_Ensure_rsyslog_Service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.2_Ensure_logging_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.3_Ensure_rsyslog_default_file_permissions_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.4_Ensure_rsyslog_is_configured_to_send_logs_to_a_remote_log_host"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.5_Ensure_remote_rsyslog_messages_are_only_accepted_on_designated_log_hosts."
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.1_Ensure_syslog-ng_service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.2_Ensure_logging_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.3_Ensure_syslog-ng_default_file_permissions_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.4_Ensure_syslog-ng_is_configured_to_send_logs_to_a_remote_log_host"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.5_Ensure_remote_syslog-ng_messages_are_only_accepted_on_designated_log_hosts"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.3_Ensure_rsyslog_or_syslog-ng_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.4_Ensure_permissions_on_all_logfiles_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.3_Ensure_logrotate_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.1_Ensure_cron_daemon_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.2_Ensure_permissions_on_etccrontab_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.3_Ensure_permissions_on_etccron.hourly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.4_Ensure_permissions_on_etccron.daily_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.5_Ensure_permissions_on_etccron.weekly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.6_Ensure_permissions_on_etccron.monthly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.7_Ensure_permissions_on_etccron.d_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.8_Ensure_atcron_is_restricted_to_authorized_users"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.1_Ensure_permissions_on_etcsshsshd_config_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.2_Ensure_SSH_Protocol_is_set_to_2"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.3_Ensure_SSH_LogLevel_is_set_to_INFO"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.4_Ensure_SSH_X11_forwarding_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.5_Ensure_SSH_MaxAuthTries_is_set_to_4_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.6_Ensure_SSH_IgnoreRhosts_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.7_Ensure_SSH_HostbasedAuthentication_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.8_Ensure_SSH_root_login_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.9_Ensure_SSH_PermitEmptyPasswords_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.10_Ensure_SSH_PermitUserEnvironment_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.11_Ensure_only_approved_MAC_algorithms_are_used"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.12_Ensure_SSH_Idle_Timeout_Interval_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.13_Ensure_SSH_LoginGraceTime_is_set_to_one_minute_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.14_Ensure_SSH_access_is_limited"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.15_Ensure_SSH_warning_banner_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.1_Ensure_password_creation_requirements_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.2_Ensure_lockout_for_failed_password_attempts_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.3_Ensure_password_reuse_is_limited"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.4_Ensure_password_hashing_algorithm_is_SHA-512"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.1_Ensure_password_expiration_is_90_days_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.2_Ensure_minimum_days_between_password_changes_is_7_or_more"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.3_Ensure_password_expiration_warning_days_is_7_or_more"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.4_Ensure_inactive_password_lock_is_30_days_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.2_Ensure_system_accounts_are_non-login"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.3_Ensure_default_group_for_the_root_account_is_GID_0"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.4_Ensure_default_user_umask_is_027_or_more_restrictive"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.5_Ensure_root_login_is_restricted_to_system_console"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.6_Ensure_access_to_the_su_command_is_restricted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.1_Audit_system_file_permissions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.2_Ensure_permissions_on_etcpasswd_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.3_Ensure_permissions_on_etcshadow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.4_Ensure_permissions_on_etcgroup_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.5_Ensure_permissions_on_etcgshadow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.6_Ensure_permissions_on_etcpasswd-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.7_Ensure_permissions_on_etcshadow-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.8_Ensure_permissions_on_etcgroup-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.9_Ensure_permissions_on_etcgshadow-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.10_Ensure_no_world_writable_files_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.11_Ensure_no_unowned_files_or_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.12_Ensure_no_ungrouped_files_or_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.13_Audit_SUID_executables"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.14_Audit_SGID_executables"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.1_Ensure_password_fields_are_not_empty"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.2_Ensure_no_legacy__entries_exist_in_etcpasswd"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.3_Ensure_no_legacy__entries_exist_in_etcshadow"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.4_Ensure_no_legacy__entries_exist_in_etcgroup"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.5_Ensure_root_is_the_only_UID_0_account"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.6_Ensure_root_PATH_Integrity"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.7_Ensure_all_users_home_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.8_Ensure_users_home_directories_permissions_are_750_or_more_restrictive"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.9_Ensure_users_own_their_home_directories"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.10_Ensure_users_dot_files_are_not_group_or_world_writable"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.11_Ensure_no_users_have_.forward_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.12_Ensure_no_users_have_.netrc_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.13_Ensure_users_.netrc_Files_are_not_group_or_world_accessible"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.14_Ensure_no_users_have_.rhosts_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.15_Ensure_all_groups_in_etcpasswd_exist_in_etcgroup"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.16_Ensure_no_duplicate_UIDs_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.17_Ensure_no_duplicate_GIDs_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.18_Ensure_no_duplicate_user_names_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.19_Ensure_no_duplicate_group_names_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.20_Ensure_shadow_group_is_empty"
           selected="true"/>
</Profile>
Level 1 - Workstation

Items in this profile intend to:

  • be practical and prudent;
  • provide a clear security benefit; and
  • not inhibit the utility of the technology beyond acceptable means.

This profile is intended for workstations.

Show Profile XML
<Profile xmlns="http://checklists.nist.gov/xccdf/1.2"
         xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         id="xccdf_org.cisecurity.benchmarks_profile_Level_1_-_Workstation">
   <title xml:lang="en">Level 1 - Workstation</title>
   <description xml:lang="en">
      <p xmlns="http://www.w3.org/1999/xhtml">Items in this profile intend to:</p>
      <ul xmlns="http://www.w3.org/1999/xhtml">
         <li>be practical and prudent;</li>
         <li>provide a clear security benefit; and</li>
         <li>not inhibit the utility of the technology beyond acceptable means.</li>
      </ul>
      <p xmlns="http://www.w3.org/1999/xhtml">This profile is intended for workstations.</p>
   </description>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.1_Ensure_mounting_of_cramfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.2_Ensure_mounting_of_freevxfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.3_Ensure_mounting_of_jffs2_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.4_Ensure_mounting_of_hfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.5_Ensure_mounting_of_hfsplus_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.6_Ensure_mounting_of_squashfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.7_Ensure_mounting_of_udf_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.3_Ensure_nodev_option_set_on_tmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.4_Ensure_nosuid_option_set_on_tmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.7_Ensure_nodev_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.8_Ensure_nosuid_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.9_Ensure_noexec_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.13_Ensure_nodev_option_set_on_home_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.14_Ensure_nodev_option_set_on_devshm_partitiov"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.15_Ensure_nosuid_option_set_on_devshm_partitionrun"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.16_Ensure_noexec_option_set_on_devshm_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.17_Ensure_nodev_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.18_Ensure_nosuid_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.19_Ensure_noexec_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.20_Ensure_sticky_bit_is_set_on_all_world-writable_directories"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.2.1_Ensure_package_manager_repositories_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.2.2_Ensure_GPG_keys_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.3.1_Ensure_AIDE_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.3.2_Ensure_filesystem_integrity_is_regularly_checked"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.1_Ensure_permissions_on_bootloader_config_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.2_Ensure_bootloader_password_is_set"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.3_Ensure_authentication_required_for_single_user_mode"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.4_Ensure_interactive_boot_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.1_Ensure_core_dumps_are_restricted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.2_Ensure_XDNX_support_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.3_Ensure_address_space_layout_randomization_ASLR_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.4_Ensure_prelink_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.1_Ensure_message_of_the_day_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.2_Ensure_local_login_warning_banner_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.3_Ensure_remote_login_warning_banner_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.4_Ensure_permissions_on_etcmotd_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.5_Ensure_permissions_on_etcissue_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.6_Ensure_permissions_on_etcissue.net_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.2_Ensure_GDM_login_banner_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.8_Ensure_updates_patches_and_additional_security_software_are_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.1_Ensure_chargen_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.2_Ensure_daytime_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.3_Ensure_discard_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.4_Ensure_echo_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.5_Ensure_time_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.6_Ensure_rsh_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.7_Ensure_talk_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.8_Ensure_telnet_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.9_Ensure_tftp_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.10_Ensure_xinetd_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.1_Ensure_time_synchronization_is_in_use"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.2_Ensure_ntp_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.3_Ensure_chrony_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.3_Ensure_Avahi_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.5_Ensure_DHCP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.6_Ensure_LDAP_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.7_Ensure_NFS_and_RPC_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.8_Ensure_DNS_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.9_Ensure_FTP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.10_Ensure_HTTP_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.11_Ensure_IMAP_and_POP3_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.12_Ensure_Samba_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.13_Ensure_HTTP_Proxy_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.14_Ensure_SNMP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.15_Ensure_mail_transfer_agent_is_configured_for_local-only_mode"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.16_Ensure_rsync_service_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.17_Ensure_NIS_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.1_Ensure_NIS_Client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.2_Ensure_rsh_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.3_Ensure_talk_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.4_Ensure_telnet_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.5_Ensure_LDAP_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.1.1_Ensure_IP_forwarding_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.1.2_Ensure_packet_redirect_sending_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.1_Ensure_source_routed_packets_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.2_Ensure_ICMP_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.3_Ensure_secure_ICMP_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.4_Ensure_suspicious_packets_are_logged"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.5_Ensure_broadcast_ICMP_requests_are_ignored"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.6_Ensure_bogus_ICMP_responses_are_ignored"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.7_Ensure_Reverse_Path_Filtering_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.8_Ensure_TCP_SYN_Cookies_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.1_Ensure_IPv6_router_advertisements_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.2_Ensure_IPv6_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.3_Ensure_IPv6_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.1_Ensure_TCP_Wrappers_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.2_Ensure_etchosts.allow_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.3_Ensure_etchosts.deny_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.4_Ensure_permissions_on_etchosts.allow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.5_Ensure_permissions_on_etchosts.deny_are_644"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.1_Ensure_DCCP_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.2_Ensure_SCTP_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.3_Ensure_RDS_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.4_Ensure_TIPC_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.1_Ensure_iptables_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.2_Ensure_default_deny_firewall_policy"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.3_Ensure_loopback_traffic_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.4_Ensure_outbound_and_established_connections_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.5_Ensure_firewall_rules_exist_for_all_open_ports"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.1_Ensure_rsyslog_Service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.2_Ensure_logging_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.3_Ensure_rsyslog_default_file_permissions_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.4_Ensure_rsyslog_is_configured_to_send_logs_to_a_remote_log_host"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.5_Ensure_remote_rsyslog_messages_are_only_accepted_on_designated_log_hosts."
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.1_Ensure_syslog-ng_service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.2_Ensure_logging_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.3_Ensure_syslog-ng_default_file_permissions_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.4_Ensure_syslog-ng_is_configured_to_send_logs_to_a_remote_log_host"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.5_Ensure_remote_syslog-ng_messages_are_only_accepted_on_designated_log_hosts"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.3_Ensure_rsyslog_or_syslog-ng_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.4_Ensure_permissions_on_all_logfiles_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.3_Ensure_logrotate_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.1_Ensure_cron_daemon_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.2_Ensure_permissions_on_etccrontab_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.3_Ensure_permissions_on_etccron.hourly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.4_Ensure_permissions_on_etccron.daily_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.5_Ensure_permissions_on_etccron.weekly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.6_Ensure_permissions_on_etccron.monthly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.7_Ensure_permissions_on_etccron.d_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.8_Ensure_atcron_is_restricted_to_authorized_users"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.1_Ensure_permissions_on_etcsshsshd_config_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.2_Ensure_SSH_Protocol_is_set_to_2"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.3_Ensure_SSH_LogLevel_is_set_to_INFO"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.4_Ensure_SSH_X11_forwarding_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.5_Ensure_SSH_MaxAuthTries_is_set_to_4_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.6_Ensure_SSH_IgnoreRhosts_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.7_Ensure_SSH_HostbasedAuthentication_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.8_Ensure_SSH_root_login_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.9_Ensure_SSH_PermitEmptyPasswords_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.10_Ensure_SSH_PermitUserEnvironment_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.11_Ensure_only_approved_MAC_algorithms_are_used"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.12_Ensure_SSH_Idle_Timeout_Interval_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.13_Ensure_SSH_LoginGraceTime_is_set_to_one_minute_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.14_Ensure_SSH_access_is_limited"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.15_Ensure_SSH_warning_banner_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.1_Ensure_password_creation_requirements_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.2_Ensure_lockout_for_failed_password_attempts_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.3_Ensure_password_reuse_is_limited"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.4_Ensure_password_hashing_algorithm_is_SHA-512"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.1_Ensure_password_expiration_is_90_days_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.2_Ensure_minimum_days_between_password_changes_is_7_or_more"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.3_Ensure_password_expiration_warning_days_is_7_or_more"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.4_Ensure_inactive_password_lock_is_30_days_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.2_Ensure_system_accounts_are_non-login"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.3_Ensure_default_group_for_the_root_account_is_GID_0"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.4_Ensure_default_user_umask_is_027_or_more_restrictive"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.5_Ensure_root_login_is_restricted_to_system_console"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.6_Ensure_access_to_the_su_command_is_restricted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.2_Ensure_permissions_on_etcpasswd_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.3_Ensure_permissions_on_etcshadow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.4_Ensure_permissions_on_etcgroup_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.5_Ensure_permissions_on_etcgshadow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.6_Ensure_permissions_on_etcpasswd-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.7_Ensure_permissions_on_etcshadow-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.8_Ensure_permissions_on_etcgroup-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.9_Ensure_permissions_on_etcgshadow-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.10_Ensure_no_world_writable_files_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.11_Ensure_no_unowned_files_or_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.12_Ensure_no_ungrouped_files_or_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.13_Audit_SUID_executables"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.14_Audit_SGID_executables"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.1_Ensure_password_fields_are_not_empty"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.2_Ensure_no_legacy__entries_exist_in_etcpasswd"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.3_Ensure_no_legacy__entries_exist_in_etcshadow"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.4_Ensure_no_legacy__entries_exist_in_etcgroup"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.5_Ensure_root_is_the_only_UID_0_account"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.6_Ensure_root_PATH_Integrity"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.7_Ensure_all_users_home_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.8_Ensure_users_home_directories_permissions_are_750_or_more_restrictive"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.9_Ensure_users_own_their_home_directories"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.10_Ensure_users_dot_files_are_not_group_or_world_writable"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.11_Ensure_no_users_have_.forward_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.12_Ensure_no_users_have_.netrc_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.13_Ensure_users_.netrc_Files_are_not_group_or_world_accessible"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.14_Ensure_no_users_have_.rhosts_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.15_Ensure_all_groups_in_etcpasswd_exist_in_etcgroup"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.16_Ensure_no_duplicate_UIDs_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.17_Ensure_no_duplicate_GIDs_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.18_Ensure_no_duplicate_user_names_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.19_Ensure_no_duplicate_group_names_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.20_Ensure_shadow_group_is_empty"
           selected="true"/>
</Profile>
Level 2 - Workstation

This profile extends the "Level 1 - Workstation" profile. Items in this profile exhibit one or more of the following characteristics:

  • are intended for environments or use cases where security is paramount.
  • acts as defense in depth measure.
  • may negatively inhibit the utility or performance of the technology.

This profile is intended for workstations.

Show Profile XML
<Profile xmlns="http://checklists.nist.gov/xccdf/1.2"
         xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         id="xccdf_org.cisecurity.benchmarks_profile_Level_2_-_Workstation">
   <title xml:lang="en">Level 2 - Workstation</title>
   <description xml:lang="en">
      <p xmlns="http://www.w3.org/1999/xhtml">This profile extends the "Level 1 - Workstation" profile. Items in this profile exhibit one or more of the following characteristics:</p>
      <ul xmlns="http://www.w3.org/1999/xhtml">
         <li>are intended for environments or use cases where security is paramount.</li>
         <li>acts as defense in depth measure.</li>
         <li>may negatively inhibit the utility or performance of the technology.</li>
      </ul>
      <p xmlns="http://www.w3.org/1999/xhtml">This profile is intended for workstations.</p>
   </description>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.1_Ensure_mounting_of_cramfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.2_Ensure_mounting_of_freevxfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.3_Ensure_mounting_of_jffs2_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.4_Ensure_mounting_of_hfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.5_Ensure_mounting_of_hfsplus_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.6_Ensure_mounting_of_squashfs_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.7_Ensure_mounting_of_udf_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.8_Ensure_mounting_of_FAT_filesystems_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.2_Ensure_separate_partition_exists_for_tmp"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.3_Ensure_nodev_option_set_on_tmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.4_Ensure_nosuid_option_set_on_tmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.5_Ensure_separate_partition_exists_for_var"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.6_Ensure_separate_partition_exists_for_vartmp"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.7_Ensure_nodev_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.8_Ensure_nosuid_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.9_Ensure_noexec_option_set_on_vartmp_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.10_Ensure_separate_partition_exists_for_varlog"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.11_Ensure_separate_partition_exists_for_varlogaudit"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.12_Ensure_separate_partition_exists_for_home"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.13_Ensure_nodev_option_set_on_home_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.14_Ensure_nodev_option_set_on_devshm_partitiov"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.15_Ensure_nosuid_option_set_on_devshm_partitionrun"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.16_Ensure_noexec_option_set_on_devshm_partition"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.17_Ensure_nodev_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.18_Ensure_nosuid_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.19_Ensure_noexec_option_set_on_removable_media_partitions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.20_Ensure_sticky_bit_is_set_on_all_world-writable_directories"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.1.21_Disable_Automounting"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.2.1_Ensure_package_manager_repositories_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.2.2_Ensure_GPG_keys_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.3.1_Ensure_AIDE_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.3.2_Ensure_filesystem_integrity_is_regularly_checked"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.1_Ensure_permissions_on_bootloader_config_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.2_Ensure_bootloader_password_is_set"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.3_Ensure_authentication_required_for_single_user_mode"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.4.4_Ensure_interactive_boot_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.1_Ensure_core_dumps_are_restricted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.2_Ensure_XDNX_support_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.3_Ensure_address_space_layout_randomization_ASLR_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.5.4_Ensure_prelink_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.1.1_Ensure_SELinux_is_not_disabled_in_bootloader_configuration"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.1.2_Ensure_the_SELinux_state_is_enforcing"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.1.3_Ensure_SELinux_policy_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.1.4_Ensure_no_unconfined_daemons_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.2.1_Ensure_AppArmor_is_not_disabled_in_bootloader_configuration"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.2.2_Ensure_all_AppArmor_Profiles_are_enforcing"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.6.3_Ensure_SELinux_or_AppArmor_are_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.1_Ensure_message_of_the_day_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.2_Ensure_local_login_warning_banner_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.3_Ensure_remote_login_warning_banner_is_configured_properly"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.4_Ensure_permissions_on_etcmotd_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.5_Ensure_permissions_on_etcissue_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.6_Ensure_permissions_on_etcissue.net_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.7.2_Ensure_GDM_login_banner_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_1.8_Ensure_updates_patches_and_additional_security_software_are_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.1_Ensure_chargen_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.2_Ensure_daytime_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.3_Ensure_discard_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.4_Ensure_echo_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.5_Ensure_time_services_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.6_Ensure_rsh_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.7_Ensure_talk_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.8_Ensure_telnet_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.9_Ensure_tftp_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.1.10_Ensure_xinetd_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.1_Ensure_time_synchronization_is_in_use"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.2_Ensure_ntp_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.3_Ensure_chrony_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.3_Ensure_Avahi_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.4_Ensure_CUPS_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.5_Ensure_DHCP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.6_Ensure_LDAP_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.7_Ensure_NFS_and_RPC_are_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.8_Ensure_DNS_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.9_Ensure_FTP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.10_Ensure_HTTP_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.11_Ensure_IMAP_and_POP3_server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.12_Ensure_Samba_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.13_Ensure_HTTP_Proxy_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.14_Ensure_SNMP_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.15_Ensure_mail_transfer_agent_is_configured_for_local-only_mode"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.16_Ensure_rsync_service_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.2.17_Ensure_NIS_Server_is_not_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.1_Ensure_NIS_Client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.2_Ensure_rsh_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.3_Ensure_talk_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.4_Ensure_telnet_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_2.3.5_Ensure_LDAP_client_is_not_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.1.1_Ensure_IP_forwarding_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.1.2_Ensure_packet_redirect_sending_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.1_Ensure_source_routed_packets_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.2_Ensure_ICMP_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.3_Ensure_secure_ICMP_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.4_Ensure_suspicious_packets_are_logged"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.5_Ensure_broadcast_ICMP_requests_are_ignored"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.6_Ensure_bogus_ICMP_responses_are_ignored"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.7_Ensure_Reverse_Path_Filtering_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.2.8_Ensure_TCP_SYN_Cookies_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.1_Ensure_IPv6_router_advertisements_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.2_Ensure_IPv6_redirects_are_not_accepted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.3.3_Ensure_IPv6_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.1_Ensure_TCP_Wrappers_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.2_Ensure_etchosts.allow_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.3_Ensure_etchosts.deny_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.4_Ensure_permissions_on_etchosts.allow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.4.5_Ensure_permissions_on_etchosts.deny_are_644"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.1_Ensure_DCCP_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.2_Ensure_SCTP_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.3_Ensure_RDS_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.5.4_Ensure_TIPC_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.1_Ensure_iptables_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.2_Ensure_default_deny_firewall_policy"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.3_Ensure_loopback_traffic_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.4_Ensure_outbound_and_established_connections_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.6.5_Ensure_firewall_rules_exist_for_all_open_ports"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_3.7_Ensure_wireless_interfaces_are_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.1.1_Ensure_audit_log_storage_size_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.1.2_Ensure_system_is_disabled_when_audit_logs_are_full"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.1.3_Ensure_audit_logs_are_not_automatically_deleted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.2_Ensure_auditd_service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.3_Ensure_auditing_for_processes_that_start_prior_to_auditd_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.4_Ensure_events_that_modify_date_and_time_information_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.5_Ensure_events_that_modify_usergroup_information_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.6_Ensure_events_that_modify_the_systems_network_environment_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.7_Ensure_events_that_modify_the_systems_Mandatory_Access_Controls_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.8_Ensure_login_and_logout_events_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.9_Ensure_session_initiation_information_is_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.10_Ensure_discretionary_access_control_permission_modification_events_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.11_Ensure_unsuccessful_unauthorized_file_access_attempts_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.12_Ensure_use_of_privileged_commands_is_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.13_Ensure_successful_file_system_mounts_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.14_Ensure_file_deletion_events_by_users_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.15_Ensure_changes_to_system_administration_scope_sudoers_is_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.16_Ensure_system_administrator_actions_sudolog_are_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.17_Ensure_kernel_module_loading_and_unloading_is_collected"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.1.18_Ensure_the_audit_configuration_is_immutable"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.1_Ensure_rsyslog_Service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.2_Ensure_logging_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.3_Ensure_rsyslog_default_file_permissions_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.4_Ensure_rsyslog_is_configured_to_send_logs_to_a_remote_log_host"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.5_Ensure_remote_rsyslog_messages_are_only_accepted_on_designated_log_hosts."
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.1_Ensure_syslog-ng_service_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.2_Ensure_logging_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.3_Ensure_syslog-ng_default_file_permissions_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.4_Ensure_syslog-ng_is_configured_to_send_logs_to_a_remote_log_host"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.5_Ensure_remote_syslog-ng_messages_are_only_accepted_on_designated_log_hosts"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.3_Ensure_rsyslog_or_syslog-ng_is_installed"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.2.4_Ensure_permissions_on_all_logfiles_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_4.3_Ensure_logrotate_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.1_Ensure_cron_daemon_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.2_Ensure_permissions_on_etccrontab_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.3_Ensure_permissions_on_etccron.hourly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.4_Ensure_permissions_on_etccron.daily_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.5_Ensure_permissions_on_etccron.weekly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.6_Ensure_permissions_on_etccron.monthly_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.7_Ensure_permissions_on_etccron.d_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.1.8_Ensure_atcron_is_restricted_to_authorized_users"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.1_Ensure_permissions_on_etcsshsshd_config_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.2_Ensure_SSH_Protocol_is_set_to_2"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.3_Ensure_SSH_LogLevel_is_set_to_INFO"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.4_Ensure_SSH_X11_forwarding_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.5_Ensure_SSH_MaxAuthTries_is_set_to_4_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.6_Ensure_SSH_IgnoreRhosts_is_enabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.7_Ensure_SSH_HostbasedAuthentication_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.8_Ensure_SSH_root_login_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.9_Ensure_SSH_PermitEmptyPasswords_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.10_Ensure_SSH_PermitUserEnvironment_is_disabled"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.11_Ensure_only_approved_MAC_algorithms_are_used"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.12_Ensure_SSH_Idle_Timeout_Interval_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.13_Ensure_SSH_LoginGraceTime_is_set_to_one_minute_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.14_Ensure_SSH_access_is_limited"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.2.15_Ensure_SSH_warning_banner_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.1_Ensure_password_creation_requirements_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.2_Ensure_lockout_for_failed_password_attempts_is_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.3_Ensure_password_reuse_is_limited"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.3.4_Ensure_password_hashing_algorithm_is_SHA-512"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.1_Ensure_password_expiration_is_90_days_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.2_Ensure_minimum_days_between_password_changes_is_7_or_more"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.3_Ensure_password_expiration_warning_days_is_7_or_more"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.4_Ensure_inactive_password_lock_is_30_days_or_less"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.2_Ensure_system_accounts_are_non-login"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.3_Ensure_default_group_for_the_root_account_is_GID_0"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.4.4_Ensure_default_user_umask_is_027_or_more_restrictive"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.5_Ensure_root_login_is_restricted_to_system_console"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_5.6_Ensure_access_to_the_su_command_is_restricted"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.1_Audit_system_file_permissions"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.2_Ensure_permissions_on_etcpasswd_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.3_Ensure_permissions_on_etcshadow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.4_Ensure_permissions_on_etcgroup_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.5_Ensure_permissions_on_etcgshadow_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.6_Ensure_permissions_on_etcpasswd-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.7_Ensure_permissions_on_etcshadow-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.8_Ensure_permissions_on_etcgroup-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.9_Ensure_permissions_on_etcgshadow-_are_configured"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.10_Ensure_no_world_writable_files_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.11_Ensure_no_unowned_files_or_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.12_Ensure_no_ungrouped_files_or_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.13_Audit_SUID_executables"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.1.14_Audit_SGID_executables"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.1_Ensure_password_fields_are_not_empty"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.2_Ensure_no_legacy__entries_exist_in_etcpasswd"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.3_Ensure_no_legacy__entries_exist_in_etcshadow"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.4_Ensure_no_legacy__entries_exist_in_etcgroup"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.5_Ensure_root_is_the_only_UID_0_account"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.6_Ensure_root_PATH_Integrity"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.7_Ensure_all_users_home_directories_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.8_Ensure_users_home_directories_permissions_are_750_or_more_restrictive"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.9_Ensure_users_own_their_home_directories"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.10_Ensure_users_dot_files_are_not_group_or_world_writable"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.11_Ensure_no_users_have_.forward_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.12_Ensure_no_users_have_.netrc_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.13_Ensure_users_.netrc_Files_are_not_group_or_world_accessible"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.14_Ensure_no_users_have_.rhosts_files"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.15_Ensure_all_groups_in_etcpasswd_exist_in_etcgroup"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.16_Ensure_no_duplicate_UIDs_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.17_Ensure_no_duplicate_GIDs_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.18_Ensure_no_duplicate_user_names_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.19_Ensure_no_duplicate_group_names_exist"
           selected="true"/>
   <select idref="xccdf_org.cisecurity.benchmarks_rule_6.2.20_Ensure_shadow_group_is_empty"
           selected="true"/>
</Profile>

Assessment Results

w Benchmark Item Result
1 Initial Setup
1.1 Filesystem Configuration
1.1.1 Disable unused filesystems
1.0 1.1.1.1 Ensure mounting of cramfs filesystems is disabled Pass
1.0 1.1.1.2 Ensure mounting of freevxfs filesystems is disabled Pass
1.0 1.1.1.3 Ensure mounting of jffs2 filesystems is disabled Pass
1.0 1.1.1.4 Ensure mounting of hfs filesystems is disabled Pass
1.0 1.1.1.5 Ensure mounting of hfsplus filesystems is disabled Pass
1.0 1.1.1.6 Ensure mounting of squashfs filesystems is disabled Fail
1.0 1.1.1.7 Ensure mounting of udf filesystems is disabled Pass
1.0 1.1.1.8 Ensure mounting of FAT filesystems is disabled Fail
1.0 1.1.3 Ensure nodev option set on /tmp partition Pass
1.0 1.1.4 Ensure nosuid option set on /tmp partition Pass
1.0 1.1.7 Ensure nodev option set on /var/tmp partition Pass
1.0 1.1.8 Ensure nosuid option set on /var/tmp partition Pass
1.0 1.1.9 Ensure noexec option set on /var/tmp partition Pass
1.0 1.1.13 Ensure nodev option set on /home partition Pass
1.0 1.1.14 Ensure nodev option set on /dev/shm partitiov Fail
1.0 1.1.15 Ensure nosuid option set on /dev/shm partitionrun Fail
1.0 1.1.16 Ensure noexec option set on /dev/shm partition Pass
1.0 1.1.20 Ensure sticky bit is set on all world-writable directories Fail
1.0 1.1.21 Disable Automounting Pass
1.2 Configure Software Updates
1.3 Filesystem Integrity Checking
1.0 1.3.1 Ensure AIDE is installed Fail
1.0 1.3.2 Ensure filesystem integrity is regularly checked Fail
1.4 Secure Boot Settings
1.0 1.4.1 Ensure permissions on bootloader config are configured Fail
1.0 1.4.2 Ensure bootloader password is set Fail
1.5 Additional Process Hardening
1.0 1.5.1 Ensure core dumps are restricted Fail

1.5.2 Ensure XD/NX support is enabled Informational
1.0 1.5.3 Ensure address space layout randomization (ASLR) is enabled Pass
1.0 1.5.4 Ensure prelink is disabled Pass
1.6 Mandatory Access Control
1.6.1 Configure SELinux
1.6.2 Configure AppArmor
1.7 Warning Banners
1.7.1 Command Line Warning Banners
1.0 1.7.1.1 Ensure message of the day is configured properly Pass

1.7.1.2 Ensure local login warning banner is configured properly Informational

1.7.1.3 Ensure remote login warning banner is configured properly Informational

1.7.1.4 Ensure permissions on /etc/motd are configured Informational
1.0 1.7.1.5 Ensure permissions on /etc/issue are configured Pass

1.7.1.6 Ensure permissions on /etc/issue.net are configured Informational
1.0 1.7.2 Ensure GDM login banner is configured Pass
2 Services
2.1 inetd Services
1.0 2.1.1 Ensure chargen services are not enabled Pass
1.0 2.1.2 Ensure daytime services are not enabled Pass
1.0 2.1.3 Ensure discard services are not enabled Pass
1.0 2.1.4 Ensure echo services are not enabled Pass
1.0 2.1.5 Ensure time services are not enabled Pass
1.0 2.1.6 Ensure rsh server is not enabled Pass
1.0 2.1.7 Ensure talk server is not enabled Pass
1.0 2.1.8 Ensure telnet server is not enabled Pass
1.0 2.1.9 Ensure tftp server is not enabled Pass
1.0 2.1.10 Ensure xinetd is not enabled Pass
2.2 Special Purpose Services
2.2.1 Time Synchronization

2.2.1.1 Ensure time synchronization is in use Informational
1.0 2.2.1.2 Ensure ntp is configured Pass
1.0 2.2.1.3 Ensure chrony is configured Pass
1.0 2.2.2 Ensure X Window System is not installed Fail
1.0 2.2.3 Ensure Avahi Server is not enabled Fail
1.0 2.2.4 Ensure CUPS is not enabled Fail
1.0 2.2.5 Ensure DHCP Server is not enabled Pass
1.0 2.2.6 Ensure LDAP server is not enabled Pass
1.0 2.2.7 Ensure NFS and RPC are not enabled Pass
1.0 2.2.8 Ensure DNS Server is not enabled Pass
1.0 2.2.9 Ensure FTP Server is not enabled Pass
1.0 2.2.10 Ensure HTTP server is not enabled Pass
1.0 2.2.11 Ensure IMAP and POP3 server is not enabled Pass
1.0 2.2.12 Ensure Samba is not enabled Pass
1.0 2.2.13 Ensure HTTP Proxy Server is not enabled Pass
1.0 2.2.14 Ensure SNMP Server is not enabled Pass
1.0 2.2.15 Ensure mail transfer agent is configured for local-only mode Pass
1.0 2.2.16 Ensure rsync service is not enabled Pass
1.0 2.2.17 Ensure NIS Server is not enabled Pass
2.3 Service Clients
1.0 2.3.1 Ensure NIS Client is not installed Pass
1.0 2.3.2 Ensure rsh client is not installed Pass
1.0 2.3.3 Ensure talk client is not installed Pass
1.0 2.3.4 Ensure telnet client is not installed Fail
1.0 2.3.5 Ensure LDAP client is not installed Pass
3 Network Configuration
3.1 Network Parameters (Host Only)
1.0 3.1.1 Ensure IP forwarding is disabled Pass
1.0 3.1.2 Ensure packet redirect sending is disabled Fail
3.2 Network Parameters (Host and Router)
1.0 3.2.1 Ensure source routed packets are not accepted Fail
1.0 3.2.2 Ensure ICMP redirects are not accepted Fail
1.0 3.2.3 Ensure secure ICMP redirects are not accepted Fail
1.0 3.2.4 Ensure suspicious packets are logged Fail
1.0 3.2.5 Ensure broadcast ICMP requests are ignored Pass
1.0 3.2.6 Ensure bogus ICMP responses are ignored Pass
1.0 3.2.7 Ensure Reverse Path Filtering is enabled Pass
1.0 3.2.8 Ensure TCP SYN Cookies is enabled Pass
3.3 IPv6

3.3.1 Ensure IPv6 router advertisements are not accepted Informational

3.3.2 Ensure IPv6 redirects are not accepted Informational

3.3.3 Ensure IPv6 is disabled Informational
3.4 TCP Wrappers
1.0 3.4.1 Ensure TCP Wrappers is installed Pass
1.0 3.4.2 Ensure /etc/hosts.allow is configured Pass
1.0 3.4.3 Ensure /etc/hosts.deny is configured Fail
1.0 3.4.4 Ensure permissions on /etc/hosts.allow are configured Pass
1.0 3.4.5 Ensure permissions on /etc/hosts.deny are 644 Pass
3.5 Uncommon Network Protocols

3.5.1 Ensure DCCP is disabled Informational

3.5.2 Ensure SCTP is disabled Informational

3.5.3 Ensure RDS is disabled Informational

3.5.4 Ensure TIPC is disabled Informational
3.6 Firewall Configuration
1.0 3.6.1 Ensure iptables is installed Pass
1.0 3.6.2 Ensure default deny firewall policy Fail
1.0 3.6.3 Ensure loopback traffic is configured Fail
1.0 3.6.5 Ensure firewall rules exist for all open ports Fail
4 Logging and Auditing
4.1 Configure System Accounting (auditd)
4.1.1 Configure Data Retention
4.2 Configure Logging
4.2.1 Configure rsyslog
1.0 4.2.1.1 Ensure rsyslog Service is enabled Pass
1.0 4.2.1.3 Ensure rsyslog default file permissions configured Pass
1.0 4.2.1.4 Ensure rsyslog is configured to send logs to a remote log host Fail
4.2.2 Configure syslog-ng
1.0 4.2.2.1 Ensure syslog-ng service is enabled Pass
1.0 4.2.2.3 Ensure syslog-ng default file permissions configured Pass
1.0 4.2.3 Ensure rsyslog or syslog-ng is installed Pass
1.0 4.2.4 Ensure permissions on all logfiles are configured Fail
5 Access, Authentication and Authorization
5.1 Configure cron
1.0 5.1.1 Ensure cron daemon is enabled Pass
1.0 5.1.2 Ensure permissions on /etc/crontab are configured Fail
1.0 5.1.3 Ensure permissions on /etc/cron.hourly are configured Fail
1.0 5.1.4 Ensure permissions on /etc/cron.daily are configured Fail
1.0 5.1.5 Ensure permissions on /etc/cron.weekly are configured Fail
1.0 5.1.6 Ensure permissions on /etc/cron.monthly are configured Fail
1.0 5.1.7 Ensure permissions on /etc/cron.d are configured Fail
1.0 5.1.8 Ensure at/cron is restricted to authorized users Fail
5.2 SSH Server Configuration
1.0 5.2.1 Ensure permissions on /etc/ssh/sshd_config are configured Fail
1.0 5.2.2 Ensure SSH Protocol is set to 2 Fail
1.0 5.2.3 Ensure SSH LogLevel is set to INFO Fail
1.0 5.2.4 Ensure SSH X11 forwarding is disabled Fail
1.0 5.2.5 Ensure SSH MaxAuthTries is set to 4 or less Fail
1.0 5.2.6 Ensure SSH IgnoreRhosts is enabled Fail
1.0 5.2.7 Ensure SSH HostbasedAuthentication is disabled Fail
1.0 5.2.8 Ensure SSH root login is disabled Fail
1.0 5.2.9 Ensure SSH PermitEmptyPasswords is disabled Fail
1.0 5.2.10 Ensure SSH PermitUserEnvironment is disabled Fail
1.0 5.2.11 Ensure only approved MAC algorithms are used Fail
1.0 5.2.12 Ensure SSH Idle Timeout Interval is configured Fail
1.0 5.2.13 Ensure SSH LoginGraceTime is set to one minute or less Fail
1.0 5.2.14 Ensure SSH access is limited Fail
1.0 5.2.15 Ensure SSH warning banner is configured Fail
5.3 Configure PAM
1.0 5.3.1 Ensure password creation requirements are configured Fail
1.0 5.3.3 Ensure password reuse is limited Fail
1.0 5.3.4 Ensure password hashing algorithm is SHA-512 Pass
5.4 User Accounts and Environment
5.4.1 Set Shadow Password Suite Parameters
1.0 5.4.1.1 Ensure password expiration is 90 days or less Fail
1.0 5.4.1.2 Ensure minimum days between password changes is 7 or more Fail
1.0 5.4.1.3 Ensure password expiration warning days is 7 or more Pass
1.0 5.4.1.4 Ensure inactive password lock is 30 days or less Fail
1.0 5.4.2 Ensure system accounts are non-login Fail
1.0 5.4.3 Ensure default group for the root account is GID 0 Pass
1.0 5.4.4 Ensure default user umask is 027 or more restrictive Fail
1.0 5.6 Ensure access to the su command is restricted Fail
6 System Maintenance
6.1 System File Permissions
1.0 6.1.2 Ensure permissions on /etc/passwd are configured Pass
1.0 6.1.3 Ensure permissions on /etc/shadow are configured Pass
1.0 6.1.4 Ensure permissions on /etc/group are configured Pass
1.0 6.1.5 Ensure permissions on /etc/gshadow are configured Pass
1.0 6.1.6 Ensure permissions on /etc/passwd- are configured Pass
1.0 6.1.7 Ensure permissions on /etc/shadow- are configured Pass
1.0 6.1.8 Ensure permissions on /etc/group- are configured Pass
1.0 6.1.9 Ensure permissions on /etc/gshadow- are configured Pass
1.0 6.1.10 Ensure no world writable files exist Fail
1.0 6.1.11 Ensure no unowned files or directories exist Pass
1.0 6.1.12 Ensure no ungrouped files or directories exist Pass
6.2 User and Group Settings
1.0 6.2.1 Ensure password fields are not empty Pass
1.0 6.2.2 Ensure no legacy "+" entries exist in /etc/passwd Pass
1.0 6.2.3 Ensure no legacy "+" entries exist in /etc/shadow Pass
1.0 6.2.4 Ensure no legacy "+" entries exist in /etc/group Pass
1.0 6.2.5 Ensure root is the only UID 0 account Pass
1.0 6.2.6 Ensure root PATH Integrity Fail
1.0 6.2.7 Ensure all users' home directories exist Fail
1.0 6.2.8 Ensure users' home directories permissions are 750 or more restrictive Fail
1.0 6.2.9 Ensure users own their home directories Pass
1.0 6.2.10 Ensure users' dot files are not group or world writable Pass
1.0 6.2.11 Ensure no users have .forward files Pass
1.0 6.2.12 Ensure no users have .netrc files Pass
1.0 6.2.13 Ensure users' .netrc Files are not group or world accessible Pass
1.0 6.2.14 Ensure no users have .rhosts files Pass
1.0 6.2.15 Ensure all groups in /etc/passwd exist in /etc/group Pass
1.0 6.2.16 Ensure no duplicate UIDs exist Pass
1.0 6.2.17 Ensure no duplicate GIDs exist Pass
1.0 6.2.18 Ensure no duplicate user names exist Pass
1.0 6.2.19 Ensure no duplicate group names exist Pass
1.0 6.2.20 Ensure shadow group is empty Pass

Assessment Details

1 Initial Setup

Items in this section are advised for all systems, but may be difficult or require extensive preparation after the initial setup of the system.

1.1 Filesystem Configuration

Directories that are used for system-wide functions can be further protected by placing them on separate partitions. This provides protection for resource exhaustion and enables the use of mounting options that are applicable to the directory's intended use. Users' data can be stored on separate partitions and have stricter mount options. A user partition is a filesystem that has been established for use by the users and does not contain software for system operations.

The recommendations in this section are easier to perform during initial system installation. If the system is already installed, it is recommended that a full backup be performed before repartitioning the system.

Note: If you are repartitioning a system that has already been installed, make sure the data has been copied over to the new partition, unmount it and then remove the data from the directory that was in the old partition. Otherwise it will still consume space in the old partition that will be masked when the new filesystem is mounted. For example, if a system is in single-user mode with no filesystems mounted and the administrator adds a lot of data to the /tmp directory, this data will still consume space in / once the /tmp filesystem is mounted unless it is removed first.

1.1.1 Disable unused filesystems

A number of uncommon filesystem types are supported under Linux. Removing support for unneeded filesystem types reduces the local attack surface of the system. If a filesystem type is not needed it should be disabled. Native Linux file systems are designed to ensure that built-in security controls function as expected. Non-native filesystems can lead to unexpected consequences to both the security and functionality of the system and should be used with caution. Many filesystems are created for niche use cases and are not maintained and supported as the operating systems are updated and patched. Users of non-native filesystems should ensure that there is attention and ongoing support for them, especially in light of frequent operating system changes.

Standard network connectivity and Internet access to cloud storage may make the use of non-standard filesystem formats to directly attach heterogeneous devices much less attractive.

Note: This should not be considered a comprehensive list of filesystems. You may wish to consider additions to those listed here for your environment.

Pass

1.1.1.1 Ensure mounting of cramfs filesystems is disabled

Description:

The cramfs filesystem type is a compressed read-only Linux filesystem embedded in small footprint systems. A cramfs image can be used without having to first decompress the image.

Removing support for unneeded filesystem types reduces the local attack surface of the server. If this filesystem type is not needed, disable it.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install cramfs /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module cramfs is not loadable -- More
Check: At Least One Must Pass
Command: modprobe -n -v cramfs
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ install /bin/true
Ensure kernel module cramfs is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^cramfs\s+ Module Size Used by
the Std. Output matches the regular expression ^cramfs\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^cramfs\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^cramfs\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^cramfs\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^cramfs\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^cramfs\s+ coretemp 16384 0
the Std. Output matches the regular expression ^cramfs\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^cramfs\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^cramfs\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^cramfs\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^cramfs\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^cramfs\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^cramfs\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^cramfs\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^cramfs\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^cramfs\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^cramfs\s+ joydev 20480 0
the Std. Output matches the regular expression ^cramfs\s+ input_leds 16384 0
the Std. Output matches the regular expression ^cramfs\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^cramfs\s+ shpchp 36864 0
the Std. Output matches the regular expression ^cramfs\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^cramfs\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^cramfs\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^cramfs\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^cramfs\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^cramfs\s+ ppdev 20480 0
the Std. Output matches the regular expression ^cramfs\s+ lp 20480 0
the Std. Output matches the regular expression ^cramfs\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^cramfs\s+ autofs4 40960 2
the Std. Output matches the regular expression ^cramfs\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^cramfs\s+ psmouse 131072 0
the Std. Output matches the regular expression ^cramfs\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^cramfs\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^cramfs\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^cramfs\s+ mptspi 24576 1
the Std. Output matches the regular expression ^cramfs\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^cramfs\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^cramfs\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^cramfs\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^cramfs\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^cramfs\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^cramfs\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^cramfs\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^cramfs\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^cramfs\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.1_Ensure_mounting_of_cramfs_filesystems_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:51.718-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:51.728-06:00"
                    start-time="2017-02-13T20:11:51.612-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module cramfs is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10003"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10003"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10003">
                  <cis:evidence_item entity_check="at least one" itemref="685">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v cramfs"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="install /bin/true " dt="string" ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module cramfs is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10004"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10004"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10004">
                  <cis:evidence_item entity_check="at least one" itemref="686">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string"
                                         ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^cramfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1002"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1003"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.1.2 Ensure mounting of freevxfs filesystems is disabled

Description:

The freevxfs filesystem type is a free version of the Veritas type filesystem. This is the primary filesystem type for HP-UX operating systems.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install freevxfs /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module freevxfs is not loadable -- More
Check: At Least One Must Pass
Command: modprobe -n -v freevxfs
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ install /bin/true
Ensure kernel module freevxfs is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^freevxfs\s+ Module Size Used by
the Std. Output matches the regular expression ^freevxfs\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^freevxfs\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^freevxfs\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^freevxfs\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^freevxfs\s+ coretemp 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^freevxfs\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^freevxfs\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^freevxfs\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^freevxfs\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^freevxfs\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^freevxfs\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^freevxfs\s+ joydev 20480 0
the Std. Output matches the regular expression ^freevxfs\s+ input_leds 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ shpchp 36864 0
the Std. Output matches the regular expression ^freevxfs\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^freevxfs\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^freevxfs\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^freevxfs\s+ ppdev 20480 0
the Std. Output matches the regular expression ^freevxfs\s+ lp 20480 0
the Std. Output matches the regular expression ^freevxfs\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^freevxfs\s+ autofs4 40960 2
the Std. Output matches the regular expression ^freevxfs\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^freevxfs\s+ psmouse 131072 0
the Std. Output matches the regular expression ^freevxfs\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^freevxfs\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^freevxfs\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^freevxfs\s+ mptspi 24576 1
the Std. Output matches the regular expression ^freevxfs\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^freevxfs\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^freevxfs\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^freevxfs\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^freevxfs\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^freevxfs\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^freevxfs\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^freevxfs\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^freevxfs\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^freevxfs\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.2_Ensure_mounting_of_freevxfs_filesystems_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:51.848-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:51.848-06:00"
                    start-time="2017-02-13T20:11:51.792-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module freevxfs is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10005"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10005"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10005">
                  <cis:evidence_item entity_check="at least one" itemref="687">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v freevxfs"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="install /bin/true " dt="string" ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module freevxfs is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10006"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10006"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10006">
                  <cis:evidence_item entity_check="at least one" itemref="688">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^freevxfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1004"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1005"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.1.3 Ensure mounting of jffs2 filesystems is disabled

Description:

The jffs2 (journaling flash filesystem 2) filesystem type is a log-structured filesystem used in flash memory devices.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install jffs2 /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module jffs2 is not loadable -- More
Check: At Least One Must Pass
Command: modprobe -n -v jffs2
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/drivers/mtd/mtd.ko
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ install /bin/true
Ensure kernel module jffs2 is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^jffs2\s+ Module Size Used by
the Std. Output matches the regular expression ^jffs2\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^jffs2\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^jffs2\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^jffs2\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^jffs2\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^jffs2\s+ coretemp 16384 0
the Std. Output matches the regular expression ^jffs2\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^jffs2\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^jffs2\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^jffs2\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^jffs2\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^jffs2\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^jffs2\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^jffs2\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^jffs2\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^jffs2\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^jffs2\s+ joydev 20480 0
the Std. Output matches the regular expression ^jffs2\s+ input_leds 16384 0
the Std. Output matches the regular expression ^jffs2\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^jffs2\s+ shpchp 36864 0
the Std. Output matches the regular expression ^jffs2\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^jffs2\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^jffs2\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^jffs2\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^jffs2\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^jffs2\s+ ppdev 20480 0
the Std. Output matches the regular expression ^jffs2\s+ lp 20480 0
the Std. Output matches the regular expression ^jffs2\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^jffs2\s+ autofs4 40960 2
the Std. Output matches the regular expression ^jffs2\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^jffs2\s+ psmouse 131072 0
the Std. Output matches the regular expression ^jffs2\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^jffs2\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^jffs2\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^jffs2\s+ mptspi 24576 1
the Std. Output matches the regular expression ^jffs2\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^jffs2\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^jffs2\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^jffs2\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^jffs2\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^jffs2\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^jffs2\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^jffs2\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^jffs2\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^jffs2\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.3_Ensure_mounting_of_jffs2_filesystems_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:51.938-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:51.938-06:00"
                    start-time="2017-02-13T20:11:51.871-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module jffs2 is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10007"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10007"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10007">
                  <cis:evidence_item entity_check="at least one" itemref="689">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v jffs2"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/drivers/mtd/mtd.ko "
                                         dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="install /bin/true " dt="string" ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module jffs2 is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10008"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10008"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10008">
                  <cis:evidence_item entity_check="at least one" itemref="690">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^jffs2\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1006"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1007"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.1.4 Ensure mounting of hfs filesystems is disabled

Description:

The hfs filesystem type is a hierarchical filesystem that allows you to mount Mac OS filesystems.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install hfs /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module hfs is not loadable -- More
Check: At Least One Must Pass
Command: modprobe -n -v hfs
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ install /bin/true
Ensure kernel module hfs is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^hfs\s+ Module Size Used by
the Std. Output matches the regular expression ^hfs\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^hfs\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^hfs\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^hfs\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^hfs\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^hfs\s+ coretemp 16384 0
the Std. Output matches the regular expression ^hfs\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^hfs\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^hfs\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^hfs\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^hfs\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^hfs\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^hfs\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^hfs\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^hfs\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^hfs\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^hfs\s+ joydev 20480 0
the Std. Output matches the regular expression ^hfs\s+ input_leds 16384 0
the Std. Output matches the regular expression ^hfs\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^hfs\s+ shpchp 36864 0
the Std. Output matches the regular expression ^hfs\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^hfs\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^hfs\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^hfs\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^hfs\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^hfs\s+ ppdev 20480 0
the Std. Output matches the regular expression ^hfs\s+ lp 20480 0
the Std. Output matches the regular expression ^hfs\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^hfs\s+ autofs4 40960 2
the Std. Output matches the regular expression ^hfs\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^hfs\s+ psmouse 131072 0
the Std. Output matches the regular expression ^hfs\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^hfs\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^hfs\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^hfs\s+ mptspi 24576 1
the Std. Output matches the regular expression ^hfs\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^hfs\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^hfs\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^hfs\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^hfs\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^hfs\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^hfs\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^hfs\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^hfs\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^hfs\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.4_Ensure_mounting_of_hfs_filesystems_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:51.996-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:51.997-06:00"
                    start-time="2017-02-13T20:11:51.946-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module hfs is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10009"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10009"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10009">
                  <cis:evidence_item entity_check="at least one" itemref="691">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v hfs"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="install /bin/true " dt="string" ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module hfs is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10010"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10010"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10010">
                  <cis:evidence_item entity_check="at least one" itemref="692">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^hfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1008"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1009"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.1.5 Ensure mounting of hfsplus filesystems is disabled

Description:

The hfsplus filesystem type is a hierarchical filesystem designed to replace hfs that allows you to mount Mac OS filesystems.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install hfsplus /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module hfsplus is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^hfsplus\s+ Module Size Used by
the Std. Output matches the regular expression ^hfsplus\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^hfsplus\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^hfsplus\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^hfsplus\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^hfsplus\s+ coretemp 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^hfsplus\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^hfsplus\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^hfsplus\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^hfsplus\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^hfsplus\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^hfsplus\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^hfsplus\s+ joydev 20480 0
the Std. Output matches the regular expression ^hfsplus\s+ input_leds 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ shpchp 36864 0
the Std. Output matches the regular expression ^hfsplus\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^hfsplus\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^hfsplus\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^hfsplus\s+ ppdev 20480 0
the Std. Output matches the regular expression ^hfsplus\s+ lp 20480 0
the Std. Output matches the regular expression ^hfsplus\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^hfsplus\s+ autofs4 40960 2
the Std. Output matches the regular expression ^hfsplus\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^hfsplus\s+ psmouse 131072 0
the Std. Output matches the regular expression ^hfsplus\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^hfsplus\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^hfsplus\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^hfsplus\s+ mptspi 24576 1
the Std. Output matches the regular expression ^hfsplus\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^hfsplus\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^hfsplus\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^hfsplus\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^hfsplus\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^hfsplus\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^hfsplus\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^hfsplus\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^hfsplus\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^hfsplus\s+ fjes 28672 0
Ensure kernel module hfsplus is not loadable -- More
Check: At Least One Must Pass
Command: modprobe -n -v hfsplus
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ install /bin/true

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.5_Ensure_mounting_of_hfsplus_filesystems_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:52.059-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:52.060-06:00"
                    start-time="2017-02-13T20:11:52.009-06:00">
         <cis:and>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module hfsplus is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10012"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10012"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10012">
                  <cis:evidence_item entity_check="at least one" itemref="693">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^hfsplus\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module hfsplus is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10011"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10011"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10011">
                  <cis:evidence_item entity_check="at least one" itemref="694">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v hfsplus"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="install /bin/true " dt="string" ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1010"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1011"/>
      </check>
   </complex-check>
</rule-result>
Fail

1.1.1.6 Ensure mounting of squashfs filesystems is disabled

Description:

The squashfs filesystem type is a compressed read-only Linux filesystem embedded in small footprint systems (similar to cramfs). A squashfs image can be used without having to first decompress the image.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install squashfs /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module squashfs is not loadable -- Less
Check: At Least One Must Pass
Command: modprobe -n -v squashfs
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$
Ensure kernel module squashfs is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^squashfs\s+ Module Size Used by
the Std. Output matches the regular expression ^squashfs\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^squashfs\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^squashfs\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^squashfs\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^squashfs\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^squashfs\s+ coretemp 16384 0
the Std. Output matches the regular expression ^squashfs\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^squashfs\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^squashfs\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^squashfs\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^squashfs\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^squashfs\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^squashfs\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^squashfs\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^squashfs\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^squashfs\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^squashfs\s+ joydev 20480 0
the Std. Output matches the regular expression ^squashfs\s+ input_leds 16384 0
the Std. Output matches the regular expression ^squashfs\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^squashfs\s+ shpchp 36864 0
the Std. Output matches the regular expression ^squashfs\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^squashfs\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^squashfs\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^squashfs\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^squashfs\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^squashfs\s+ ppdev 20480 0
the Std. Output matches the regular expression ^squashfs\s+ lp 20480 0
the Std. Output matches the regular expression ^squashfs\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^squashfs\s+ autofs4 40960 2
the Std. Output matches the regular expression ^squashfs\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^squashfs\s+ psmouse 131072 0
the Std. Output matches the regular expression ^squashfs\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^squashfs\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^squashfs\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^squashfs\s+ mptspi 24576 1
the Std. Output matches the regular expression ^squashfs\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^squashfs\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^squashfs\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^squashfs\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^squashfs\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^squashfs\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^squashfs\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^squashfs\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^squashfs\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^squashfs\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.6_Ensure_mounting_of_squashfs_filesystems_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:52.113-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:52.118-06:00"
                    start-time="2017-02-13T20:11:52.068-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module squashfs is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10013"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10013"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10013">
                  <cis:evidence_item entity_check="at least one" itemref="695">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v squashfs"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev="^install\s+/bin/true\s*$" name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module squashfs is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10014"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10014"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10014">
                  <cis:evidence_item entity_check="at least one" itemref="696">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^squashfs\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1012"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1013"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.1.7 Ensure mounting of udf filesystems is disabled

Description:

The udf filesystem type is the universal disk format used to implement ISO/IEC 13346 and ECMA-167 specifications. This is an open vendor filesystem type for data storage on a broad range of media. This filesystem type is necessary to support writing DVDs and newer optical disc formats.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install udf /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module udf is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^udf\s+ Module Size Used by
the Std. Output matches the regular expression ^udf\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^udf\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^udf\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^udf\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^udf\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^udf\s+ coretemp 16384 0
the Std. Output matches the regular expression ^udf\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^udf\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^udf\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^udf\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^udf\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^udf\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^udf\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^udf\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^udf\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^udf\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^udf\s+ joydev 20480 0
the Std. Output matches the regular expression ^udf\s+ input_leds 16384 0
the Std. Output matches the regular expression ^udf\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^udf\s+ shpchp 36864 0
the Std. Output matches the regular expression ^udf\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^udf\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^udf\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^udf\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^udf\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^udf\s+ ppdev 20480 0
the Std. Output matches the regular expression ^udf\s+ lp 20480 0
the Std. Output matches the regular expression ^udf\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^udf\s+ autofs4 40960 2
the Std. Output matches the regular expression ^udf\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^udf\s+ psmouse 131072 0
the Std. Output matches the regular expression ^udf\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^udf\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^udf\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^udf\s+ mptspi 24576 1
the Std. Output matches the regular expression ^udf\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^udf\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^udf\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^udf\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^udf\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^udf\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^udf\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^udf\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^udf\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^udf\s+ fjes 28672 0
Ensure kernel module udf is not loadable -- More
Check: At Least One Must Pass
Command: modprobe -n -v udf
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/lib/crc-itu-t.ko
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ install /bin/true

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.7_Ensure_mounting_of_udf_filesystems_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:52.183-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:52.184-06:00"
                    start-time="2017-02-13T20:11:52.125-06:00">
         <cis:and>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module udf is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10016"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10016"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10016">
                  <cis:evidence_item entity_check="at least one" itemref="697">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^udf\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module udf is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10015"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10015"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10015">
                  <cis:evidence_item entity_check="at least one" itemref="698">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v udf"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/lib/crc-itu-t.ko " dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="install /bin/true " dt="string" ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1014"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1015"/>
      </check>
   </complex-check>
</rule-result>
Fail

1.1.1.8 Ensure mounting of FAT filesystems is disabled

Description:

The FAT filesystem format is primarily used on older windows systems and portable USB drives or flash modules. It comes in three types FAT12, FAT16, and FAT32 all of which are supported by the vfat kernel module.

Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install vfat /bin/true

Impact:

FAT filesystems are often used on portable USB sticks and other flash media are commonly used to transfer files between workstations, removing VFAT support may prevent the ability to transfer files in this way.

All of the following tests or sub-groups must pass:
Ensure kernel module vfat is not loadable -- Less
Check: At Least One Must Pass
Command: modprobe -n -v vfat
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$
Ensure kernel module vfat is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^vfat\s+ Module Size Used by
the Std. Output matches the regular expression ^vfat\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^vfat\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^vfat\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^vfat\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^vfat\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^vfat\s+ coretemp 16384 0
the Std. Output matches the regular expression ^vfat\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^vfat\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^vfat\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^vfat\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^vfat\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^vfat\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^vfat\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^vfat\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^vfat\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^vfat\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^vfat\s+ joydev 20480 0
the Std. Output matches the regular expression ^vfat\s+ input_leds 16384 0
the Std. Output matches the regular expression ^vfat\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^vfat\s+ shpchp 36864 0
the Std. Output matches the regular expression ^vfat\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^vfat\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^vfat\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^vfat\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^vfat\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^vfat\s+ ppdev 20480 0
the Std. Output matches the regular expression ^vfat\s+ lp 20480 0
the Std. Output matches the regular expression ^vfat\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^vfat\s+ autofs4 40960 2
the Std. Output matches the regular expression ^vfat\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^vfat\s+ psmouse 131072 0
the Std. Output matches the regular expression ^vfat\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^vfat\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^vfat\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^vfat\s+ mptspi 24576 1
the Std. Output matches the regular expression ^vfat\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^vfat\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^vfat\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^vfat\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^vfat\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^vfat\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^vfat\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^vfat\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^vfat\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^vfat\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.1.8_Ensure_mounting_of_FAT_filesystems_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:52.244-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:52.244-06:00"
                    start-time="2017-02-13T20:11:52.199-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module vfat is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10017"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10017"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10017">
                  <cis:evidence_item entity_check="at least one" itemref="699">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v vfat"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev="^install\s+/bin/true\s*$" name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module vfat is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10018"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10018"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10018">
                  <cis:evidence_item entity_check="at least one" itemref="700">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^vfat\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1016"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1017"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.3 Ensure nodev option set on /tmp partition

Description:

The nodev mount option specifies that the filesystem cannot contain special devices.

Since the /tmp filesystem is not intended to support devices, set this option to ensure that users cannot attempt to create block or character special devices in /tmp.

Edit the /etc/fstab file and add nodev to the fourth field (mounting options) for the /tmp partition. See the fstab(5) manual page for more information.

Run the following command to remount /tmp:

# mount -o remount,nodev /tmp

Ensure partition at /tmp may exists and all have at least one partition option equals 'nodev' (string) -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.3_Ensure_nodev_option_set_on_tmp_partition"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:56.717-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:56.722-06:00"
                    start-time="2017-02-13T20:11:56.579-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /tmp may exists and all have at least one partition option equals 'nodev' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10020"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10020"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10019"/>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1019"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.4 Ensure nosuid option set on /tmp partition

Description:

The nosuid mount option specifies that the filesystem cannot contain setuid files.

Since the /tmp filesystem is only intended for temporary file storage, set this option to ensure that users cannot create setuid files in /tmp.

Edit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the /tmp partition. See the fstab(5) manual page for more information.

Run the following command to remount /tmp:

# mount -o remount,nosuid /tmp

Ensure partition at /tmp may exists and all have at least one partition option equals 'nosuid' (string) -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.4_Ensure_nosuid_option_set_on_tmp_partition"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:56.795-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:56.795-06:00"
                    start-time="2017-02-13T20:11:56.723-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /tmp may exists and all have at least one partition option equals 'nosuid' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10021"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10021"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10020"/>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1020"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.7 Ensure nodev option set on /var/tmp partition

Description:

The nodev mount option specifies that the filesystem cannot contain special devices.

Since the /var/tmp filesystem is not intended to support devices, set this option to ensure that users cannot attempt to create block or character special devices in /var/tmp.

Edit the /etc/fstab file and add nodev to the fourth field (mounting options) for the /var/tmp partition. See the fstab(5) manual page for more information.

Run the following command to remount /var/tmp:

# mount -o remount,nodev /var/tmp

Ensure partition at /var/tmp may exists and all have at least one partition option equals 'nodev' (string) -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.7_Ensure_nodev_option_set_on_vartmp_partition"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:56.843-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:56.844-06:00"
                    start-time="2017-02-13T20:11:56.797-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /var/tmp may exists and all have at least one partition option equals 'nodev' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10024"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10024"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10021"/>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1023"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.8 Ensure nosuid option set on /var/tmp partition

Description:

The nosuid mount option specifies that the filesystem cannot contain setuid files.

Since the /var/tmp filesystem is only intended for temporary file storage, set this option to ensure that users cannot create setuid files in /var/tmp.

Edit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the /var/tmp partition. See the fstab(5) manual page for more information.

Run the following command to remount /var/tmp:

# mount -o remount,nosuid /var/tmp

Ensure partition at /var/tmp may exists and all have at least one partition option equals 'nosuid' (string) -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.8_Ensure_nosuid_option_set_on_vartmp_partition"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:56.873-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:56.882-06:00"
                    start-time="2017-02-13T20:11:56.844-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /var/tmp may exists and all have at least one partition option equals 'nosuid' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10025"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10025"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10022"/>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1024"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.9 Ensure noexec option set on /var/tmp partition

Description:

The noexec mount option specifies that the filesystem cannot contain executable binaries.

Since the /var/tmp filesystem is only intended for temporary file storage, set this option to ensure that users cannot run executable binaries from /var/tmp.

Edit the /etc/fstab file and add noexec to the fourth field (mounting options) for the /var/tmp partition. See the fstab(5) manual page for more information.

Run the following command to remount /var/tmp:

# mount -o remount,noexec /var/tmp

Ensure partition at /var/tmp may exists and all have at least one partition option equals 'noexec' (string) -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.9_Ensure_noexec_option_set_on_vartmp_partition"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:56.931-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:56.932-06:00"
                    start-time="2017-02-13T20:11:56.882-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /var/tmp may exists and all have at least one partition option equals 'noexec' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10026"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10026"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10023"/>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1025"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.13 Ensure nodev option set on /home partition

Description:

The nodev mount option specifies that the filesystem cannot contain special devices.

Since the user partitions are not intended to support devices, set this option to ensure that users cannot attempt to create block or character special devices.

Edit the /etc/fstab file and add nodev to the fourth field (mounting options) for the /home partition. See the fstab(5) manual page for more information.

# mount -o remount,nodev /home

Ensure partition at /home may exists and all have at least one partition option equals 'nodev' (string) -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.13_Ensure_nodev_option_set_on_home_partition"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:52.385-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:52.385-06:00"
                    start-time="2017-02-13T20:11:52.279-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /home may exists and all have at least one partition option equals 'nodev' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10030"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10030"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10024"/>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1029"/>
      </check>
   </complex-check>
</rule-result>
Fail

1.1.14 Ensure nodev option set on /dev/shm partitiov

Description:

The nodev mount option specifies that the filesystem cannot contain special devices.

Since the /run/shm filesystem is not intended to support devices, set this option to ensure that users cannot attempt to create special devices in /dev/shm partitions.

Edit the /etc/fstab file and add nodev to the fourth field (mounting options) for the /dev/shm partition. See the fstab(5) manual page for more information.

Run the following command to remount /dev/shm:

# mount -o remount,nodev /dev/shm

Ensure partition at /dev/shm may exists and all have at least one partition option equals 'nodev' (string) -- Less
Check: All Must Pass
Mount Point: /dev/shm
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Mount Options to be set to nodev rw
the Mount Options to be set to nodev noexec

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.14_Ensure_nodev_option_set_on_devshm_partitiov"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:52.469-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:52.469-06:00"
                    start-time="2017-02-13T20:11:52.389-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /dev/shm may exists and all have at least one partition option equals 'nodev' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10031"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10031"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10025">
                  <cis:evidence_item entity_check="at least one" itemref="703">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="mount_point" value="/dev/shm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="rw" dt="string" ev="nodev" name="mount_options" op="equals" result="false"/>
                     <cis:evidence_field cv="noexec" dt="string" ev="nodev" name="mount_options" op="equals"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1030"/>
      </check>
   </complex-check>
</rule-result>
Fail

1.1.15 Ensure nosuid option set on /dev/shm partitionrun

Description:

The nosuid mount option specifies that the filesystem cannot contain setuid files.

Setting this option on a file system prevents users from introducing privileged programs onto the system and allowing non-root users to execute them.

Edit the /etc/fstab file and add nosuid to the fourth field (mounting options) for the /dev/shm partition. See the fstab(5) manual page for more information.

Run the following command to remount /dev/shm:

# mount -o remount,nosuid /dev/shm

Ensure partition at /dev/shm may exists and all have at least one partition option equals 'nosuid' (string) -- Less
Check: All Must Pass
Mount Point: /dev/shm
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Mount Options to be set to nosuid rw
the Mount Options to be set to nosuid noexec

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.15_Ensure_nosuid_option_set_on_devshm_partitionrun"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:52.536-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:52.537-06:00"
                    start-time="2017-02-13T20:11:52.474-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /dev/shm may exists and all have at least one partition option equals 'nosuid' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10032"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10032"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10026">
                  <cis:evidence_item entity_check="at least one" itemref="704">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="mount_point" value="/dev/shm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="rw" dt="string" ev="nosuid" name="mount_options" op="equals" result="false"/>
                     <cis:evidence_field cv="noexec" dt="string" ev="nosuid" name="mount_options" op="equals"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1031"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.1.16 Ensure noexec option set on /dev/shm partition

Description:

The noexec mount option specifies that the filesystem cannot contain executable binaries.

Setting this option on a file system prevents users from executing programs from shared memory. This deters users from introducing potentially malicious software on the system.

Edit the /etc/fstab file and add noexec to the fourth field (mounting options) for the /dev/shm partition. See the fstab(5) manual page for more information.

Run the following command to remount /dev/shm:

# mount -o remount,noexec /dev/shm

Ensure partition at /dev/shm may exists and all have at least one partition option equals 'noexec' (string) -- More
Check: All Must Pass
Mount Point: /dev/shm
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Mount Options to be set to noexec rw
the Mount Options to be set to noexec noexec

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.16_Ensure_noexec_option_set_on_devshm_partition"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:52.612-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:52.612-06:00"
                    start-time="2017-02-13T20:11:52.546-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure partition at /dev/shm may exists and all have at least one partition option equals 'noexec' (string)"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10033"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10033"
                               type="partition_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10027">
                  <cis:evidence_item entity_check="at least one" itemref="705">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="mount_point" value="/dev/shm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="rw" dt="string" ev="noexec" name="mount_options" op="equals" result="false"/>
                     <cis:evidence_field cv="noexec" dt="string" ev="noexec" name="mount_options" op="equals"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1032"/>
      </check>
   </complex-check>
</rule-result>
Fail

1.1.20 Ensure sticky bit is set on all world-writable directories

Description:

Setting the sticky bit on world writable directories prevents users from deleting or renaming files in that directory that are not owned by them.

This feature prevents the ability to delete or rename files in world writable directories (such as /tmp) that are owned by another user.

Run the following command to set the sticky bit on all world writable directories:

# df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -type d -perm -0002 2>/dev/null | chmod a+t

Ensure sticky bit is set on all world-writable directories -- Less
Script: sce/world_writable_dirs_sticky.sh
Standard Output:
/home/Ankh-Morpork/Nightwatch/public is 777 should be 1777
/home/Ankh-Morpork/Assassin/public is 777 should be 1777
/home/Ankh-Morpork/Unreal/public is 777 should be 1777
Standard Error:
No Standard Error was produced

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.20_Ensure_sticky_bit_is_set_on_all_world-writable_directories"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:56.543-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0">
         <cis:and>
            <cis:evidence_test comment="Ensure sticky bit is set on all world-writable directories"
                               result="fail">
               <cis:evidence_sce exit-code="102"
                                 full-path="/home/cis-cat-full/sce/world_writable_dirs_sticky.sh"
                                 href="sce/world_writable_dirs_sticky.sh">
                  <cis:environment_variables>
                     <cis:environment_variable var_name="XCCDF_RESULT_FIXED" var_value="109"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_APPLICABLE" var_value="105"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_INFORMATIONAL" var_value="108"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_UNKNOWN" var_value="104"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_SELECTED" var_value="107"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_PASS" var_value="101"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_ERROR" var_value="103"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_FAIL" var_value="102"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_CHECKED" var_value="106"/>
                  </cis:environment_variables>
                  <cis:stdout>
                     <cis:line>/home/Ankh-Morpork/Nightwatch/public is 777 should be 1777</cis:line>
                     <cis:line>/home/Ankh-Morpork/Assassin/public is 777 should be 1777</cis:line>
                     <cis:line>/home/Ankh-Morpork/Unreal/public is 777 should be 1777</cis:line>
                  </cis:stdout>
               </cis:evidence_sce>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout"/>
      <check-content-ref href="sce/world_writable_dirs_sticky.sh"/>
   </check>
</rule-result>
Pass

1.1.21 Disable Automounting

Description:

autofs allows automatic mounting of devices, typically including CD/DVDs and USB drives.

With automounting enabled anyone with physical access could attach a USB drive or disc and have its contents available in system even if they lacked permissions to mount it themselves.

Run the following command to disable autofs:

# systemctl disable autofs

Impact:

The use portable hard drives is very common for workstation users. If your organization allows the use of portable storage or media on workstations and physical access controls to workstations is considered adequate there is little value add in turning off automounting.

Ensure standard service 'autofs' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled autofs.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.1.21_Disable_Automounting"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:56.573-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:56.574-06:00"
                    start-time="2017-02-13T20:11:56.563-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'autofs' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10035"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10035"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10029">
                  <cis:evidence_item entity_check="at least one" itemref="706">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled autofs.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1034"/>
      </check>
   </complex-check>
</rule-result>

1.2 Configure Software Updates

Ubuntu Linux uses apt to install and update software packages. Patch management procedures may vary widely between enterprises. Large enterprises may choose to install a local updates server that can be used in place of Ubuntu's servers, whereas a single deployment of a system may prefer to get updates directly. Updates can be performed automatically or manually, depending on the site's policy for patch management. Many large enterprises prefer to test patches on a non-production system before rolling out to production.

For the purpose of this benchmark, the requirement is to ensure that a patch management system is configured and maintained. The specifics on patch update procedures are left to the organization.

1.3 Filesystem Integrity Checking

AIDE is a file integrity checking tool, similar in nature to Tripwire. While it cannot prevent intrusions, it can detect unauthorized changes to configuration files by alerting when the files are changed. When setting up AIDE, decide internally what the site policy will be concerning integrity checking. Review the AIDE quick start guide and AIDE documentation before proceeding.

Fail

1.3.1 Ensure AIDE is installed

Description:

AIDE takes a snapshot of filesystem state including modification times, permissions, and file hashes which can then be used to compare against the current state of the filesystem to detect modifications to the system.

By monitoring the filesystem state compromised files can be detected to prevent or limit the exposure of accidental or malicious misconfigurations or modified binaries.

Run the following command to install AIDE:

# apt-get install aide

Configure AIDE as appropriate for your environment. Consult the AIDE documentation for options.

Initialize AIDE:

# aide --init

Ensure package name equals 'aide' is installed -- Less
CIS-CAT expected to collect at least 1 matching dpkg Package, and found 0 items.
Package Name: aide does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.3.1_Ensure_AIDE_is_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.083-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.084-06:00"
                    start-time="2017-02-13T20:11:56.933-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure package name equals 'aide' is installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10036"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10036"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="713">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="aide"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1035"/>
      </check>
   </complex-check>
</rule-result>
Fail

1.3.2 Ensure filesystem integrity is regularly checked

Description:

Periodic checking of the filesystem integrity is needed to detect changes to the filesystem.

Periodic file checking allows the system administrator to determine on a regular basis if critical files have been changed in an unauthorized fashion.

Run the following command:

# crontab -u root -e

Add the following line to the crontab:

0 5 * * * /usr/bin/aide --check

Any of the following tests or sub-groups may pass:
Ensure at least one file(s) named .* in /etc/cron.monthly exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/cron.monthly/0anacron does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.monthly/.placeholder does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
Any of the following tests or sub-groups may pass:
Ensure at least one file(s) named .* in /etc/cron.weekly exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/cron.weekly/apt-xapian-index does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.weekly/0anacron does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.weekly/update-notifier-common does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.weekly/.placeholder does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.weekly/man-db does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.weekly/fstrim does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
Any of the following tests or sub-groups may pass:
Ensure at least one file(s) named .* in /etc/cron.daily exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/cron.daily/0anacron does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/aptitude does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/cracklib-runtime does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/update-notifier-common does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/passwd does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/upstart does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/dpkg does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/popularity-contest does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/apport does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/.placeholder does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/logrotate does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/mlocate does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/man-db does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/bsdmainutils does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.daily/apt-compat does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
Any of the following tests or sub-groups may pass:
Ensure at least one file(s) named .* in /etc/cron.hourly exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/cron.hourly/.placeholder does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
Any of the following tests or sub-groups may pass:
Ensure at least one file(s) named .* in /etc/cron.d exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/cron.d/anacron does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.d/popularity-contest does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
File: /etc/cron.d/.placeholder does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
Any of the following tests or sub-groups may pass:
Ensure at least one file named /var/spool/cron/crontabs/root exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /var/spool/cron/crontabs/root does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found
Ensure at least one file named /etc/crontab exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/crontab does not exist
Pattern: ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.3.2_Ensure_filesystem_integrity_is_regularly_checked"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.245-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.254-06:00"
                    start-time="2017-02-13T20:11:57.090-06:00">
         <cis:or>
            <cis:or>
               <cis:or>
                  <cis:or>
                     <cis:or>
                        <cis:or>
                           <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                              comment="Ensure at least one file named /var/spool/cron/crontabs/root exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"
                                              negated="false"
                                              ns="independent"
                                              objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10037"
                                              result="false"
                                              testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10037"
                                              type="textfilecontent54_test">
                              <cis:evidence_object>
                                 <cis:evidence_item itemref="715">
                                    <cis:evidence_item_pk status="does not exist">
                                       <cis:evidence_item_pk_field name="filepath" value="/var/spool/cron/crontabs/root"/>
                                       <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                                       <cis:evidence_item_pk_field name="instance" value="1"/>
                                    </cis:evidence_item_pk>
                                 </cis:evidence_item>
                              </cis:evidence_object>
                           </cis:evidence_test>
                           <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                              comment="Ensure at least one file named /etc/crontab exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"
                                              negated="false"
                                              ns="independent"
                                              objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10038"
                                              result="false"
                                              testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10038"
                                              type="textfilecontent54_test">
                              <cis:evidence_object>
                                 <cis:evidence_item itemref="716">
                                    <cis:evidence_item_pk status="does not exist">
                                       <cis:evidence_item_pk_field name="filepath" value="/etc/crontab"/>
                                       <cis:evidence_item_pk_field name="path" value="/etc"/>
                                       <cis:evidence_item_pk_field name="filename" value="crontab"/>
                                       <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                                    </cis:evidence_item_pk>
                                 </cis:evidence_item>
                              </cis:evidence_object>
                           </cis:evidence_test>
                        </cis:or>
                        <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                           comment="Ensure at least one file(s) named .* in /etc/cron.d exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"
                                           negated="false"
                                           ns="independent"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10039"
                                           result="false"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10039"
                                           type="textfilecontent54_test">
                           <cis:evidence_object>
                              <cis:evidence_item itemref="720">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="filepath" value="/etc/cron.d/anacron"/>
                                    <cis:evidence_item_pk_field name="path" value="/etc/cron.d"/>
                                    <cis:evidence_item_pk_field name="filename" value="anacron"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                              <cis:evidence_item itemref="721">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="filepath" value="/etc/cron.d/popularity-contest"/>
                                    <cis:evidence_item_pk_field name="path" value="/etc/cron.d"/>
                                    <cis:evidence_item_pk_field name="filename" value="popularity-contest"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                              <cis:evidence_item itemref="722">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="filepath" value="/etc/cron.d/.placeholder"/>
                                    <cis:evidence_item_pk_field name="path" value="/etc/cron.d"/>
                                    <cis:evidence_item_pk_field name="filename" value=".placeholder"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                           </cis:evidence_object>
                        </cis:evidence_test>
                     </cis:or>
                     <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                        comment="Ensure at least one file(s) named .* in /etc/cron.hourly exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"
                                        negated="false"
                                        ns="independent"
                                        objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10040"
                                        result="false"
                                        testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10040"
                                        type="textfilecontent54_test">
                        <cis:evidence_object>
                           <cis:evidence_item itemref="724">
                              <cis:evidence_item_pk status="does not exist">
                                 <cis:evidence_item_pk_field name="filepath" value="/etc/cron.hourly/.placeholder"/>
                                 <cis:evidence_item_pk_field name="path" value="/etc/cron.hourly"/>
                                 <cis:evidence_item_pk_field name="filename" value=".placeholder"/>
                                 <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                              </cis:evidence_item_pk>
                           </cis:evidence_item>
                        </cis:evidence_object>
                     </cis:evidence_test>
                  </cis:or>
                  <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                     comment="Ensure at least one file(s) named .* in /etc/cron.daily exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"
                                     negated="false"
                                     ns="independent"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10041"
                                     result="false"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10041"
                                     type="textfilecontent54_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="740">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/0anacron"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="0anacron"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="741">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/aptitude"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="aptitude"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="742">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/cracklib-runtime"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="cracklib-runtime"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="743">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/update-notifier-common"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="update-notifier-common"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="744">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/passwd"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="passwd"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="745">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/upstart"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="upstart"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="746">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/dpkg"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="dpkg"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="747">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/popularity-contest"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="popularity-contest"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="748">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/apport"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="apport"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="749">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/.placeholder"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value=".placeholder"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="750">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/logrotate"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="logrotate"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="751">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/mlocate"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="mlocate"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="752">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/man-db"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="man-db"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="753">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/bsdmainutils"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="bsdmainutils"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                        <cis:evidence_item itemref="754">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily/apt-compat"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                              <cis:evidence_item_pk_field name="filename" value="apt-compat"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
               </cis:or>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file(s) named .* in /etc/cron.weekly exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10042"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10042"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="761">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/cron.weekly/apt-xapian-index"/>
                           <cis:evidence_item_pk_field name="path" value="/etc/cron.weekly"/>
                           <cis:evidence_item_pk_field name="filename" value="apt-xapian-index"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                     <cis:evidence_item itemref="762">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/cron.weekly/0anacron"/>
                           <cis:evidence_item_pk_field name="path" value="/etc/cron.weekly"/>
                           <cis:evidence_item_pk_field name="filename" value="0anacron"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                     <cis:evidence_item itemref="763">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/cron.weekly/update-notifier-common"/>
                           <cis:evidence_item_pk_field name="path" value="/etc/cron.weekly"/>
                           <cis:evidence_item_pk_field name="filename" value="update-notifier-common"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                     <cis:evidence_item itemref="764">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/cron.weekly/.placeholder"/>
                           <cis:evidence_item_pk_field name="path" value="/etc/cron.weekly"/>
                           <cis:evidence_item_pk_field name="filename" value=".placeholder"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                     <cis:evidence_item itemref="765">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/cron.weekly/man-db"/>
                           <cis:evidence_item_pk_field name="path" value="/etc/cron.weekly"/>
                           <cis:evidence_item_pk_field name="filename" value="man-db"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                     <cis:evidence_item itemref="766">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/cron.weekly/fstrim"/>
                           <cis:evidence_item_pk_field name="path" value="/etc/cron.weekly"/>
                           <cis:evidence_item_pk_field name="filename" value="fstrim"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:or>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file(s) named .* in /etc/cron.monthly exists and matches pattern ^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10043"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10043"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="769">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/cron.monthly/0anacron"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/cron.monthly"/>
                        <cis:evidence_item_pk_field name="filename" value="0anacron"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="770">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/cron.monthly/.placeholder"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/cron.monthly"/>
                        <cis:evidence_item_pk_field name="filename" value=".placeholder"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\S+\s+\S+\s+\S+\s+\S+\s+\S+\s+/usr/bin/aide --check"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <complex-check operator="OR">
         <complex-check operator="OR">
            <complex-check operator="OR">
               <complex-check operator="OR">
                  <complex-check operator="OR">
                     <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                        <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1036"
                                      value-id="xccdf_org.cisecurity.benchmarks_value_1.3.2.1_var"/>
                        <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                           name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1036"/>
                     </check>
                     <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                        <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1037"
                                      value-id="xccdf_org.cisecurity.benchmarks_value_1.3.2.2_var"/>
                        <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                           name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1037"/>
                     </check>
                  </complex-check>
                  <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                     <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1038"
                                   value-id="xccdf_org.cisecurity.benchmarks_value_1.3.2.3_var"/>
                     <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                        name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1038"/>
                  </check>
               </complex-check>
               <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                  <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1039"
                                value-id="xccdf_org.cisecurity.benchmarks_value_1.3.2.4_var"/>
                  <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                     name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1039"/>
               </check>
            </complex-check>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1040"
                             value-id="xccdf_org.cisecurity.benchmarks_value_1.3.2.5_var"/>
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1040"/>
            </check>
         </complex-check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1041"
                          value-id="xccdf_org.cisecurity.benchmarks_value_1.3.2.6_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1041"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1042"
                       value-id="xccdf_org.cisecurity.benchmarks_value_1.3.2.7_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1042"/>
      </check>
   </complex-check>
</rule-result>

1.4 Secure Boot Settings

The recommendations in this section focus on securing the bootloader and settings involved in the boot process directly.

Fail

1.4.1 Ensure permissions on bootloader config are configured

Description:

The grub configuration file contains information on boot settings and passwords for unlocking boot options. The grub configuration is usually grub.cfg stored in /boot/grub.

Setting the permissions to read and write for root only prevents non-root users from seeing the boot parameters or changing them. Non-root users who read the boot parameters may be able to identify weaknesses in security upon boot and be able to exploit them.

Run the following commands to set permissions on your grub configuration:

# chown root:root /boot/grub/grub.cfg
# chmod og-rwx /boot/grub/grub.cfg

Ensure at least one file named /boot/grub/grub.cfg exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
File: /boot/grub/grub.cfg
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to false true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.4.1_Ensure_permissions_on_bootloader_config_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.368-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.368-06:00"
                    start-time="2017-02-13T20:11:57.278-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /boot/grub/grub.cfg exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10044"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10044"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10030">
                  <cis:evidence_item itemref="772">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/boot/grub/grub.cfg"/>
                        <cis:evidence_item_pk_field name="path" value="/boot/grub"/>
                        <cis:evidence_item_pk_field name="filename" value="grub.cfg"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1043"/>
      </check>
   </complex-check>
</rule-result>
Fail

1.4.2 Ensure bootloader password is set

Description:

Setting the boot loader password will require that anyone rebooting the system must enter a password before being able to set command line boot parameters

Requiring a boot password upon execution of the boot loader will prevent an unauthorized user from entering boot parameters or changing the boot partition. This prevents users from weakening security (e.g. turning off SELinux at boot time).

Create an encrypted password with grub-mkpasswd-pbkdf2:

# grub-mkpasswd-pbkdf2
Enter password: <password>
Reenter password: <password>
Your PBKDF2 is <encrypted-password>

Add the following into /etc/grub.d/00_header or a custom /etc/grub.d configuration file:

cat <<EOF
set superusers="<username>"
password_pbkdf2 <username> <encrypted-password>
EOF

Run the following command to update the grub2 configuration:

# update-grub

Any of the following tests or sub-groups may pass:
Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*set\s+superusers\s*=\s*"[^"]*"\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /boot/grub/grub.cfg does not exist
Pattern: ^\s*set\s+superusers\s*=\s*"[^"]*"\s*(\s+#.*)?$
Match Text: No match found
Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*password_pbkdf2\s+\S+\s+\S+\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /boot/grub/grub.cfg does not exist
Pattern: ^\s*password_pbkdf2\s+\S+\s+\S+\s*(\s+#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.4.2_Ensure_bootloader_password_is_set"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.395-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.395-06:00"
                    start-time="2017-02-13T20:11:57.374-06:00">
         <cis:or>
            <cis:and>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*password_pbkdf2\s+\S+\s+\S+\s*(\s+#.*)?$"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10046"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10046"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="773">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/boot/grub/grub.cfg"/>
                           <cis:evidence_item_pk_field name="path" value="/boot/grub"/>
                           <cis:evidence_item_pk_field name="filename" value="grub.cfg"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\s*password_pbkdf2\s+\S+\s+\S+\s*(\s+#.*)?$"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*set\s+superusers\s*=\s*&#34;[^&#34;]*&#34;\s*(\s+#.*)?$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10045"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10045"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="774">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/boot/grub/grub.cfg"/>
                        <cis:evidence_item_pk_field name="path" value="/boot/grub"/>
                        <cis:evidence_item_pk_field name="filename" value="grub.cfg"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*set\s+superusers\s*=\s*&#34;[^&#34;]*&#34;\s*(\s+#.*)?$"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1044"
                       value-id="xccdf_org.cisecurity.benchmarks_value_1.4.2.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1044"/>
      </check>
      <complex-check operator="AND">
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1045"
                          value-id="xccdf_org.cisecurity.benchmarks_value_1.4.2.2_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1045"/>
         </check>
      </complex-check>
   </complex-check>
</rule-result>

1.5 Additional Process Hardening

Fail

1.5.1 Ensure core dumps are restricted

Description:

A core dump is the memory of an executable program. It is generally used to determine why a program aborted. It can also be used to glean confidential information from a core file. The system provides the ability to set a soft limit for core dumps, but this can be overridden by the user.

Setting a hard limit on core dumps prevents users from overriding the soft variable. If core dumps are required, consider setting limits for user groups (see limits.conf(5)). In addition, setting the fs.suid_dumpable variable to 0 will prevent setuid programs from dumping core.

Add the following line to the /etc/security/limits.conf file or a /etc/security/limits.d/* file:

* hard core 0

Set the following parameter in the /etc/sysctl.conf file:

fs.suid_dumpable = 0

Run the following command to set the active kernel parameter:

# sysctl -w fs.suid_dumpable=0



All of the following tests or sub-groups must pass:
Ensure 'fs.suid_dumpable' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: fs.suid_dumpable
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to fs.suid_dumpable fs.suid_dumpable
the Kernel Parameter Value to be set to 0 2
Any of the following tests or sub-groups may pass:
Ensure at least one file named /etc/security/limits.conf exists and matches pattern ^\s*\*\s+hard\s+core\s+0\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/security/limits.conf does not exist
Pattern: ^\s*\*\s+hard\s+core\s+0\s*(\s+#.*)?$
Match Text: No match found
Ensure at least one file(s) named .* in /etc/security/limits.d exists and matches pattern ^\s*\*\s+hard\s+core\s+0\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/security/limits.d/.* does not exist
Pattern: ^\s*\*\s+hard\s+core\s+0\s*(\s+#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.5.1_Ensure_core_dumps_are_restricted"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.540-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.541-06:00"
                    start-time="2017-02-13T20:11:57.397-06:00">
         <cis:and>
            <cis:or>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file named /etc/security/limits.conf exists and matches pattern ^\s*\*\s+hard\s+core\s+0\s*(\s+#.*)?$"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10047"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10047"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="775">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/security/limits.conf"/>
                           <cis:evidence_item_pk_field name="path" value="/etc/security"/>
                           <cis:evidence_item_pk_field name="filename" value="limits.conf"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\s*\*\s+hard\s+core\s+0\s*(\s+#.*)?$"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file(s) named .* in /etc/security/limits.d exists and matches pattern ^\s*\*\s+hard\s+core\s+0\s*(\s+#.*)?$"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10048"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10048"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="776">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="path" value="/etc/security/limits.d"/>
                           <cis:evidence_item_pk_field name="filename" value=".*"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\s*\*\s+hard\s+core\s+0\s*(\s+#.*)?$"/>
                           <cis:evidence_item_pk_field name="instance" value="1"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:or>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'fs.suid_dumpable' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10049"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10049"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10031">
                  <cis:evidence_item itemref="856">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="fs.suid_dumpable"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="fs.suid_dumpable" dt="string" ev="fs.suid_dumpable" name="name" op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="2" dt="int" ev="0" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <complex-check operator="OR">
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1046"
                          value-id="xccdf_org.cisecurity.benchmarks_value_1.5.1.1_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1046"/>
         </check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1047"
                          value-id="xccdf_org.cisecurity.benchmarks_value_1.5.1.2_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1047"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1048"
                       value-id="xccdf_org.cisecurity.benchmarks_value_1.5.1.3_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1048"/>
      </check>
   </complex-check>
</rule-result>
Informational

1.5.2 Ensure XD/NX support is enabled

Description:

Recent processors in the x86 family support the ability to prevent code execution on a per memory page basis. Generically and on AMD processors, this ability is called No Execute (NX), while on Intel processors it is called Execute Disable (XD). This ability can help prevent exploitation of buffer overflow vulnerabilities and should be activated whenever possible. Extra steps must be taken to ensure that this protection is enabled, particularly on 32-bit x86 systems. Other processors, such as Itanium and POWER, have included such support since inception and the standard kernel for those platforms supports the feature.

Enabling any feature that can protect against buffer overflow attacks enhances the security of the system.

On 32 bit systems install a kernel with PAE support, no installation is required on 64 bit systems:

If necessary configure your bootloader to load the new kernel and reboot the system.

You may need to enable NX or XD support in your bios.

Ensure 'dmesg | grep "NX [(]Execute Disable[)] protection: active"' output pattern match '.+' (string) -- More
Check: At Least One Must Pass
Command: dmesg | grep "NX [(]Execute Disable[)] protection: active"
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+ [ 0.000000] NX (Execute Disable) protection: active

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.5.2_Ensure_XDNX_support_is_enabled"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:11:57.571-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.572-06:00"
                    start-time="2017-02-13T20:11:57.548-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure 'dmesg | grep &#34;NX [(]Execute Disable[)] protection: active&#34;' output pattern match '.+' (string)"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10050"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10050"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10032">
                  <cis:evidence_item entity_check="at least one" itemref="1566">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command"
                                                    value="dmesg | grep &#34;NX [(]Execute Disable[)] protection: active&#34;"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="[    0.000000] NX (Execute Disable) protection: active" dt="string" ev=".+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1049"
                       value-id="xccdf_org.cisecurity.benchmarks_value_1.5.2.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1049"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.5.3 Ensure address space layout randomization (ASLR) is enabled

Description:

Address space layout randomization (ASLR) is an exploit mitigation technique which randomly arranges the address space of key data areas of a process.

Randomly placing virtual memory regions will make it difficult to write memory page exploits as the memory placement will be consistently shifting.

Set the following parameter in the /etc/sysctl.conf file:

kernel.randomize_va_space = 2

Run the following command to set the active kernel parameter:

# sysctl -w kernel.randomize_va_space=2

Ensure 'kernel.randomize_va_space' kernel parameter equals 2 (int) -- More
Check: All Must Pass
Kernel Parameter: kernel.randomize_va_space
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to kernel.randomize_va_space kernel.randomize_va_space
the Kernel Parameter Value to be set to 2 2

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.5.3_Ensure_address_space_layout_randomization_ASLR_is_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.580-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.580-06:00"
                    start-time="2017-02-13T20:11:57.572-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'kernel.randomize_va_space' kernel parameter equals 2 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10051"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10051"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10033">
                  <cis:evidence_item itemref="937">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="kernel.randomize_va_space"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="kernel.randomize_va_space" dt="string" ev="kernel.randomize_va_space"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="2" dt="int" ev="2" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1050"
                       value-id="xccdf_org.cisecurity.benchmarks_value_1.5.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1050"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.5.4 Ensure prelink is disabled

Description:

prelink is a program that modifies ELF shared libraries and ELF dynamically linked binaries in such a way that the time needed for the dynamic linker to perform relocations at startup significantly decreases.

The prelinking feature can interfere with the operation of AIDE, because it changes binaries. Prelinking can also increase the vulnerability of the system if a malicious user is able to compromise a common library such as libc.

Run the following command to restore binaries to normal:

# prelink -ua

Run the following command to uninstall prelink:

# apt-get remove prelink

Ensure package name equals 'prelink' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: prelink does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.5.4_Ensure_prelink_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.656-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.656-06:00"
                    start-time="2017-02-13T20:11:57.581-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'prelink' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10052"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10052"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1567">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="prelink"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1051"/>
      </check>
   </complex-check>
</rule-result>

1.6 Mandatory Access Control

Mandatory Access Control (MAC) provides an additional layer of access restrictions to processes on top of the base Discretionary Access Controls. By restricting how processes can access files and resources on a system the potential impact from vulnerabilities in the processes can be reduced.

Impact: Mandatory Access Control limits the capabilities of applications and daemons on a system, while this can prevent unauthorized access the configuration of MAC can be complex and difficult to implement correctly preventing legitimate access from occurring.

1.6.1 Configure SELinux

SELinux provides a Mandatory Access Control (MAC) system that greatly augments the default Discretionary Access Control (DAC) model. Under SELinux, every process and every object (files, sockets, pipes) on the system is assigned a security context, a label that includes detailed type information about the object. The kernel allows processes to access objects only if that access is explicitly allowed by the policy in effect. The policy defines transitions, so that a user can be allowed to run software, but the software can run under a different context than the user's default. This automatically limits the damage that the software can do to files accessible by the calling user. The user does not need to take any action to gain this benefit. For an action to occur, both the traditional DAC permissions must be satisfied as well as the SELinux MAC rules. The action will not be allowed if either one of these models does not permit the action. In this way, SELinux rules can only make a system's permissions more restrictive and secure. SELinux requires a complex policy to allow all the actions required of a system under normal operation. Three such policies have been available for use with Ubuntu and are included with the system: ubuntu, default, strict, and mls. These are described as follows:

  • ubuntu: targeted rules developed for ubuntu specifically
  • default: targeted rules developed and maintained by Debian. Consists mostly of Type Enforcement (TE) rules, and a small number of Role-Based Access Control (RBAC) rules. Targeted restricts the actions of many types of programs, but leaves interactive users largely unaffected.
  • strict: also uses TE and RBAC rules, but on more programs and more aggressively.
  • mls: implements Multi-Level Security (MLS), which introduces even more kinds of labels (sensitivity and category) and rules that govern access based on these.

This section provides guidance for the configuration of the targeted policy.

Note: This section only applies if SELinux is in use on the system. Recommendations for AppArmor are also included, and additional Mandatory Access Control systems exist beyond these two. AppArmor is the standard MAC system for Ubuntu systems.

References:

  1. NSA SELinux resources:
    1. http://www.nsa.gov/research/selinux
    2. http://www.nsa.gov/research/selinux/list.shtml
  2. Fedora SELinux resources:
    1. FAQ: http://docs.fedoraproject.org/selinux-faq
    2. User Guide: http://docs.fedoraproject.org/selinux-user-guide
    3. Managing Services Guide: http://docs.fedoraproject.org/selinux-managing-confined-services-guide
  3. SELinux Project web page and wiki:
    1. http://www.selinuxproject.org
  4. Chapters 43-45 of Red Hat Enterprise Linux 5: Deployment Guide (Frank Mayer, Karl MacMillan and David Caplan),
  5. SELinux by Example: Using Security Enhanced Linux (Prentice Hall, August 6, 2006)

1.6.2 Configure AppArmor

AppArmor provides a Mandatory Access Control (MAC) system that greatly augments the default Discretionary Access Control (DAC) model. Under AppArmor MAC rules are applied by file paths instead of by security contexts as in other MAC systems. As such it does not require support in the filesystem and can be applied to network mounted filesystems for example. AppArmor security policies define what system resources applications can access and what privileges they can do so with. This automatically limits the damage that the software can do to files accessible by the calling user. The user does not need to take any action to gain this benefit. For an action to occur, both the traditional DAC permissions must be satisfied as well as the AppArmor MAC rules. The action will not be allowed if either one of these models does not permit the action. In this way, AppArmor rules can only make a system's permissions more restrictive and secure.

Note: This section only applies if AppArmor is in use on the system. Recommendations for SELinux are also included, and additional Mandatory Access Control systems exist beyond these two.

References:

  1. AppArmor Documentation: http://wiki.apparmor.net/index.php/Documentation
  2. Ubuntu AppArmor Documentation: https://help.ubuntu.com/community/AppArmor
  3. SUSE AppArmor Documentation: https://www.suse.com/documentation/apparmor/

1.7 Warning Banners

Presenting a warning message prior to the normal user login may assist in the prosecution of trespassers on the computer system. Changing some of these login banners also has the side effect of hiding OS version information and other detailed system information from attackers attempting to target specific exploits at a system.

Guidelines published by the US Department of Defense require that warning messages include at least the name of the organization that owns the system, the fact that the system is subject to monitoring and that such monitoring is in compliance with local statutes, and that use of the system implies consent to such monitoring. It is important that the organization's legal counsel review the content of all messages before any system modifications are made, as these warning messages are inherently site-specific. More information (including citations of relevant case law) can be found at http://www.justice.gov/criminal/cybercrime/

Note: The text provided in the remediation actions for these items is intended as an example only. Please edit to include the specific text for your organization as approved by your legal department.

1.7.1 Command Line Warning Banners

The /etc/motd, /etc/issue, and /etc/issue.net files govern warning banners for standard command line logins for both local and remote users.

Pass

1.7.1.1 Ensure message of the day is configured properly

Description:

The contents of the /etc/motd file are displayed to users after login and function as a message of the day for authenticated users.

Unix-based systems have typically displayed information about the OS release and patch level upon logging in to the system. This information can be useful to developers who are developing software for a particular OS platform. If mingetty(8) supports the following options, they display operating system information:

\m - machine architecture
\r - operating system release
\s - operating system name
\v - operating system version

Warning messages inform users who are attempting to login to the system of their legal status regarding the system and must include the name of the organization that owns the system and any monitoring policies that are in place. Displaying OS and patch level information in login banners also has the side effect of providing detailed system information to attackers attempting to target specific exploits of a system. Authorized users can easily get this information by running the "uname -a" command once they have logged in.

Edit the /etc/motd file with the appropriate contents according to your site policy, remove any instances of \m, \r, \s, or \v.

Ensure at least one file named /etc/motd exists and does not match pattern (\\v|\\r|\\m|\\s) -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/motd does not exist
Pattern: (\\v|\\r|\\m|\\s)
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.1_Ensure_message_of_the_day_is_configured_properly"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.671-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.671-06:00"
                    start-time="2017-02-13T20:11:57.665-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/motd exists and does not match pattern (\\v|\\r|\\m|\\s)"
                               negated="true"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10074"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10074"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1568">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/motd"/>
                        <cis:evidence_item_pk_field name="pattern" value="(\\v|\\r|\\m|\\s)"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1073"/>
      </check>
   </complex-check>
</rule-result>
Informational

1.7.1.2 Ensure local login warning banner is configured properly

Description:

The contents of the /etc/issue file are displayed to users prior to login for local terminals.


Unix-based systems have typically displayed information about the OS release and patch level upon logging in to the system. This information can be useful to developers who are developing software for a particular OS platform. If mingetty(8) supports the following options, they display operating system information:

\m - machine architecture
\r - operating system release
\s - operating system name
\v - operating system version

Warning messages inform users who are attempting to login to the system of their legal status regarding the system and must include the name of the organization that owns the system and any monitoring policies that are in place. Displaying OS and patch level information in login banners also has the side effect of providing detailed system information to attackers attempting to target specific exploits of a system. Authorized users can easily get this information by running the " uname -a " command once they have logged in.

Edit the /etc/issue file with the appropriate contents according to your site policy, remove any instances of \m, \r, \s, or \v:

# echo "Authorized uses only. All activity may be monitored and reported." > /etc/issue

Ensure at least one file named /etc/issue exists and does not match pattern (\\v|\\r|\\m|\\s) -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/issue does not exist
Pattern: (\\(v)|\\(r)|\\(m)|\\s)
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.2_Ensure_local_login_warning_banner_is_configured_properly"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:11:57.673-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.677-06:00"
                    start-time="2017-02-13T20:11:57.671-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/issue exists and does not match pattern (\\v|\\r|\\m|\\s)"
                               negated="true"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10075"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10075"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1569">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/issue"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="issue"/>
                        <cis:evidence_item_pk_field name="pattern" value="(\\(v)|\\(r)|\\(m)|\\s)"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1074"/>
      </check>
   </complex-check>
</rule-result>
Informational

1.7.1.3 Ensure remote login warning banner is configured properly

Description:

The contents of the /etc/issue.net file are displayed to users prior to login for remote connections from configured services.

Unix-based systems have typically displayed information about the OS release and patch level upon logging in to the system. This information can be useful to developers who are developing software for a particular OS platform. If mingetty(8) supports the following options, they display operating system information:

\m - machine architecture
\r - operating system release
\s - operating system name
\v - operating system version

Warning messages inform users who are attempting to login to the system of their legal status regarding the system and must include the name of the organization that owns the system and any monitoring policies that are in place. Displaying OS and patch level information in login banners also has the side effect of providing detailed system information to attackers attempting to target specific exploits of a system. Authorized users can easily get this information by running the " uname -a " command once they have logged in.

Edit the /etc/issue.net file with the appropriate contents according to your site policy, remove any instances of \m, \r, \s, or \v:

# echo "Authorized uses only. All activity may be monitored and reported." > /etc/issue.net

Ensure at least one file named /etc/issue.net exists and does not match pattern (\\v|\\r|\\m|\\s) -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/issue.net does not exist
Pattern: (\\(v)|\\(r)|\\(m)|\\s)
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.3_Ensure_remote_login_warning_banner_is_configured_properly"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:11:57.682-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.682-06:00"
                    start-time="2017-02-13T20:11:57.679-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/issue.net exists and does not match pattern (\\v|\\r|\\m|\\s)"
                               negated="true"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10076"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10076"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1570">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/issue.net"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="issue.net"/>
                        <cis:evidence_item_pk_field name="pattern" value="(\\(v)|\\(r)|\\(m)|\\s)"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1075"/>
      </check>
   </complex-check>
</rule-result>
Informational

1.7.1.4 Ensure permissions on /etc/motd are configured

Description:

The contents of the /etc/motd file are displayed to users after login and function as a message of the day for authenticated users.

If the /etc/motd file does not have the correct ownership it could be modified by unauthorized users with incorrect or misleading information.

Run the following commands to set permissions on /etc/motd:

# chown root:root /etc/motd
# chmod 644 /etc/motd

Ensure at least one file named /etc/motd exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky -- Less
CIS-CAT expected at least 1 matching file item to be collected, and found 0 items.
File: /etc/motd does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.4_Ensure_permissions_on_etcmotd_are_configured"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:11:57.693-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.693-06:00"
                    start-time="2017-02-13T20:11:57.683-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/motd exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10077"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10077"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1571">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/motd"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1076"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.7.1.5 Ensure permissions on /etc/issue are configured

Description:

The contents of the /etc/issue file are displayed to users prior to login for local terminals.

If the /etc/issue file does not have the correct ownership it could be modified by unauthorized users with incorrect or misleading information.

Run the following commands to set permissions on /etc/issue:

# chown root:root /etc/issue
# chmod 644 /etc/issue

Ensure at least one file named /etc/issue exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky -- More
File: /etc/issue
CIS-CAT Expected... CIS-CAT Collected...
the file's Owner Write to be set to true true
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Owner Read to be set to true true
the file's Other Read to be set to true true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to true true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.5_Ensure_permissions_on_etcissue_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.726-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.726-06:00"
                    start-time="2017-02-13T20:11:57.693-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/issue exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10078"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10078"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10043">
                  <cis:evidence_item itemref="1572">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/issue"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="issue"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uwrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uread" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1077"/>
      </check>
   </complex-check>
</rule-result>
Informational

1.7.1.6 Ensure permissions on /etc/issue.net are configured

Description:

The contents of the /etc/issue.net file are displayed to users prior to login for remote connections from configured services.

If the /etc/issue.net file does not have the correct ownership it could be modified by unauthorized users with incorrect or misleading information.

Run the following commands to set permissions on /etc/issue.net:

# chown root:root /etc/issue.net
# chmod 644 /etc/issue.net

Ensure at least one file named /etc/issue.net exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky -- More
File: /etc/issue.net
CIS-CAT Expected... CIS-CAT Collected...
the file's Owner Write to be set to true true
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Owner Read to be set to true true
the file's Other Read to be set to true true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to true true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.7.1.6_Ensure_permissions_on_etcissue.net_are_configured"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:11:57.756-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.756-06:00"
                    start-time="2017-02-13T20:11:57.727-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/issue.net exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10079"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10079"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10044">
                  <cis:evidence_item itemref="1573">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/issue.net"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="issue.net"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uwrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uread" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1078"/>
      </check>
   </complex-check>
</rule-result>
Pass

1.7.2 Ensure GDM login banner is configured

Description:

GDM is the GNOME Display Manager which handles graphical login for GNOME based systems.

Warning messages inform users who are attempting to login to the system of their legal status regarding the system and must include the name of the organization that owns the system and any monitoring policies that are in place.

Create the /etc/dconf/profile/gdm file with the following contents:

user-db:user
system-db:gdm
file-db:/usr/share/gdm/greeter-dconf-defaults

Create or edit the banner-message-enable and banner-message-text options in /etc/dconf/db/gdm.d/01-banner-message:

[org/gnome/login-screen]
banner-message-enable=true
banner-message-text='Authorized uses only. All activity may be monitored and reported.'

Run the following command to update the system databases:

# dconf update

Any of the following tests or sub-groups may pass:
Ensure package name equals 'gdm' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: gdm does not exist
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/dconf/db/gdm.d/01-banner-message exists and matches pattern ^banner-message-text='.+'$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/dconf/db/gdm.d/01-banner-message does not exist
Pattern: ^banner-message-text='.+'$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/dconf/db/gdm.d/01-banner-message exists and matches pattern ^banner-message-enable=true$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/dconf/db/gdm.d/01-banner-message does not exist
Pattern: ^banner-message-enable=true$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/dconf/profile/gdm exists and matches pattern ^file-db:/usr/share/gdm/greeter-dconf-defaults$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/dconf/profile/gdm does not exist
Pattern: ^file-db:/usr/share/gdm/greeter-dconf-defaults$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/dconf/profile/gdm exists and matches pattern ^user-db:user$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/dconf/profile/gdm does not exist
Pattern: ^user-db:user$
Match Text: No match found
Ensure at least one file named /etc/dconf/profile/gdm exists and matches pattern ^system-db:gdm$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/dconf/profile/gdm does not exist
Pattern: ^system-db:gdm$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_1.7.2_Ensure_GDM_login_banner_is_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.827-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.828-06:00"
                    start-time="2017-02-13T20:11:57.759-06:00">
         <cis:or>
            <cis:and>
               <cis:and>
                  <cis:and>
                     <cis:and>
                        <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                           comment="Ensure at least one file named /etc/dconf/profile/gdm exists and matches pattern ^user-db:user$"
                                           negated="false"
                                           ns="independent"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10080"
                                           result="false"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10080"
                                           type="textfilecontent54_test">
                           <cis:evidence_object>
                              <cis:evidence_item itemref="1574">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="filepath" value="/etc/dconf/profile/gdm"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^user-db:user$"/>
                                    <cis:evidence_item_pk_field name="instance" value="1"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                           </cis:evidence_object>
                        </cis:evidence_test>
                        <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                           comment="Ensure at least one file named /etc/dconf/profile/gdm exists and matches pattern ^system-db:gdm$"
                                           negated="false"
                                           ns="independent"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10081"
                                           result="false"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10081"
                                           type="textfilecontent54_test">
                           <cis:evidence_object>
                              <cis:evidence_item itemref="1575">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="filepath" value="/etc/dconf/profile/gdm"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^system-db:gdm$"/>
                                    <cis:evidence_item_pk_field name="instance" value="1"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                           </cis:evidence_object>
                        </cis:evidence_test>
                     </cis:and>
                     <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                        comment="Ensure at least one file named /etc/dconf/profile/gdm exists and matches pattern ^file-db:/usr/share/gdm/greeter-dconf-defaults$"
                                        negated="false"
                                        ns="independent"
                                        objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10082"
                                        result="false"
                                        testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10082"
                                        type="textfilecontent54_test">
                        <cis:evidence_object>
                           <cis:evidence_item itemref="1576">
                              <cis:evidence_item_pk status="does not exist">
                                 <cis:evidence_item_pk_field name="filepath" value="/etc/dconf/profile/gdm"/>
                                 <cis:evidence_item_pk_field name="pattern" value="^file-db:/usr/share/gdm/greeter-dconf-defaults$"/>
                                 <cis:evidence_item_pk_field name="instance" value="1"/>
                              </cis:evidence_item_pk>
                           </cis:evidence_item>
                        </cis:evidence_object>
                     </cis:evidence_test>
                  </cis:and>
                  <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                     comment="Ensure at least one file named /etc/dconf/db/gdm.d/01-banner-message exists and matches pattern ^banner-message-enable=true$"
                                     negated="false"
                                     ns="independent"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10083"
                                     result="false"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10083"
                                     type="textfilecontent54_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="1577">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/dconf/db/gdm.d/01-banner-message"/>
                              <cis:evidence_item_pk_field name="pattern" value="^banner-message-enable=true$"/>
                              <cis:evidence_item_pk_field name="instance" value="1"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
               </cis:and>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file named /etc/dconf/db/gdm.d/01-banner-message exists and matches pattern ^banner-message-text='.+'$"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10084"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10084"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="1578">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/dconf/db/gdm.d/01-banner-message"/>
                           <cis:evidence_item_pk_field name="pattern" value="^banner-message-text='.+'$"/>
                           <cis:evidence_item_pk_field name="instance" value="1"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'gdm' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10085"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10085"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1579">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="gdm"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <complex-check operator="AND">
         <complex-check operator="AND">
            <complex-check operator="AND">
               <complex-check operator="AND">
                  <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                     <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1079"
                                   value-id="xccdf_org.cisecurity.benchmarks_value_1.7.2.1_var"/>
                     <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                        name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1079"/>
                  </check>
                  <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                     <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1080"
                                   value-id="xccdf_org.cisecurity.benchmarks_value_1.7.2.2_var"/>
                     <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                        name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1080"/>
                  </check>
               </complex-check>
               <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                  <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1081"
                                value-id="xccdf_org.cisecurity.benchmarks_value_1.7.2.3_var"/>
                  <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                     name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1081"/>
               </check>
            </complex-check>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1082"
                             value-id="xccdf_org.cisecurity.benchmarks_value_1.7.2.4_var"/>
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1082"/>
            </check>
         </complex-check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1083"
                          value-id="xccdf_org.cisecurity.benchmarks_value_1.7.2.5_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1083"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1084"/>
      </check>
   </complex-check>
</rule-result>

2 Services

While applying system updates and patches helps correct known vulnerabilities, one of the best ways to protect the system against as yet unreported vulnerabilities is to disable all services that are not required for normal system operation. This prevents the exploitation of vulnerabilities discovered at a later date. If a service is not enabled, it cannot be exploited. The actions in this section of the document provide guidance on some services which can be safely disabled and under which circumstances, greatly reducing the number of possible threats to the resulting system. Additionally some services which should remain enabled but with secure configuration are covered as well as insecure service clients.

2.1 inetd Services

inetd is a super-server daemon that provides internet services and passes connections to configured services. While not commonly used inetd and any unneeded inetd based services should be disabled if possible.

Pass

2.1.1 Ensure chargen services are not enabled

Description:

chargen is a network service that responds with 0 to 512 ASCII characters for each connection it receives. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.

Disabling this service will reduce the remote attack surface of the system.

Comment out or remove any lines starting with chargen from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all chargen services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'chargen' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'chargen' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^chargen\s+
Match Text: No match found
Ensure inted service 'chargen' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^chargen\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.1_Ensure_chargen_services_are_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.890-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.891-06:00"
                    start-time="2017-02-13T20:11:57.852-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'chargen' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10086"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10086"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10045"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'chargen' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10087"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10087"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1583">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^chargen\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'chargen' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10088"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10088"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1584">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^chargen\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1085"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.2 Ensure daytime services are not enabled

Description:

daytime is a network service that responds with the server's current date and time. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.

Disabling this service will reduce the remote attack surface of the system.

Comment out or remove any lines starting with daytime from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all daytime services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'daytime' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'daytime' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^daytime\s+
Match Text: No match found
Ensure inted service 'daytime' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^daytime\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.2_Ensure_daytime_services_are_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.907-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.907-06:00"
                    start-time="2017-02-13T20:11:57.894-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'daytime' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10089"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10089"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10046"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'daytime' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10090"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10090"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1586">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^daytime\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'daytime' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10091"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10091"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1587">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^daytime\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1086"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.3 Ensure discard services are not enabled

Description:

discard is a network service that simply discards all data it receives. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.

Disabling this service will reduce the remote attack surface of the system.

Comment out or remove any lines starting with discard from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all discard services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'discard' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'discard' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^discard\s+
Match Text: No match found
Ensure inted service 'discard' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^discard\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.3_Ensure_discard_services_are_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.922-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.922-06:00"
                    start-time="2017-02-13T20:11:57.909-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'discard' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10092"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10092"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10047"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'discard' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10093"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10093"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1589">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^discard\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'discard' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10094"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10094"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1590">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^discard\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1087"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.4 Ensure echo services are not enabled

Description:

echo is a network service that responds to clients with the data sent to it by the client. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.

Disabling this service will reduce the remote attack surface of the system.

Comment out or remove any lines starting with echo from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all echo services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'echo' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'echo' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^echo\s+
Match Text: No match found
Ensure inted service 'echo' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^echo\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.4_Ensure_echo_services_are_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.935-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.936-06:00"
                    start-time="2017-02-13T20:11:57.926-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'echo' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10095"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10095"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10048"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'echo' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10096"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10096"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1592">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^echo\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'echo' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10097"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10097"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1593">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^echo\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1088"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.5 Ensure time services are not enabled

Description:

time is a network service that responds with the server's current date and time as a 32 bit integer. This service is intended for debugging and testing purposes. It is recommended that this service be disabled.

Disabling this service will reduce the remote attack surface of the system.

Comment out or remove any lines starting with time from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all time services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'time' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'time' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^time\s+
Match Text: No match found
Ensure inted service 'time' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^time\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.5_Ensure_time_services_are_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.947-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.947-06:00"
                    start-time="2017-02-13T20:11:57.937-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'time' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10098"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10098"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10049"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'time' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10099"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10099"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1595">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^time\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'time' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10100"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10100"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1596">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^time\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1089"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.6 Ensure rsh server is not enabled

Description:

The Berkeley rsh-server (rsh, rlogin, rexec) package contains legacy services that exchange credentials in clear-text.

These legacy services contain numerous security exposures and have been replaced with the more secure SSH package.

Comment out or remove any lines starting with shell, login, or exec from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all rsh, rlogin, and rexec services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'resec' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'resec' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^resec\s+
Match Text: No match found
Ensure inted service 'resec' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^resec\s+
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure inted service 'rlogin' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'rlogin' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^rlogin\s+
Match Text: No match found
Ensure inted service 'rlogin' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^rlogin\s+
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure inted service 'rsh' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'rsh' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^rsh\s+
Match Text: No match found
Ensure inted service 'rsh' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^rsh\s+
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure inted service 'exec' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'exec' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^exec\s+
Match Text: No match found
Ensure inted service 'exec' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^exec\s+
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure inted service 'login' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'login' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^login\s+
Match Text: No match found
Ensure inted service 'login' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^login\s+
Match Text: No match found
Ensure inted service 'shell' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'shell' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^shell\s+
Match Text: No match found
Ensure inted service 'shell' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^shell\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.6_Ensure_rsh_server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.015-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.016-06:00"
                    start-time="2017-02-13T20:11:57.950-06:00">
         <cis:and>
            <cis:and>
               <cis:and>
                  <cis:and>
                     <cis:and>
                        <cis:evidence_test check="all" check_existence="any_exist"
                                           comment="Ensure inted service 'login' is disabled"
                                           negated="false"
                                           ns="unix"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10104"
                                           result="true"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10104"
                                           type="xinetd_test">
                           <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10051"/>
                        </cis:evidence_test>
                        <cis:evidence_test check="all" check_existence="none_exist"
                                           comment="Ensure inted service 'login' is disabled"
                                           negated="false"
                                           ns="independent"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10105"
                                           result="true"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10105"
                                           type="textfilecontent54_test">
                           <cis:evidence_object>
                              <cis:evidence_item itemref="1598">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^login\s+"/>
                                    <cis:evidence_item_pk_field name="instance" value="1"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                           </cis:evidence_object>
                        </cis:evidence_test>
                        <cis:evidence_test check="all" check_existence="none_exist"
                                           comment="Ensure inted service 'login' is disabled"
                                           negated="false"
                                           ns="independent"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10106"
                                           result="true"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10106"
                                           type="textfilecontent54_test">
                           <cis:evidence_object>
                              <cis:evidence_item itemref="1599">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                                    <cis:evidence_item_pk_field name="filename" value=".+"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^login\s+"/>
                                    <cis:evidence_item_pk_field name="instance" value="1"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                           </cis:evidence_object>
                        </cis:evidence_test>
                        <cis:evidence_test check="all" check_existence="any_exist"
                                           comment="Ensure inted service 'shell' is disabled"
                                           negated="false"
                                           ns="unix"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10101"
                                           result="true"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10101"
                                           type="xinetd_test">
                           <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10050"/>
                        </cis:evidence_test>
                        <cis:evidence_test check="all" check_existence="none_exist"
                                           comment="Ensure inted service 'shell' is disabled"
                                           negated="false"
                                           ns="independent"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10102"
                                           result="true"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10102"
                                           type="textfilecontent54_test">
                           <cis:evidence_object>
                              <cis:evidence_item itemref="1601">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^shell\s+"/>
                                    <cis:evidence_item_pk_field name="instance" value="1"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                           </cis:evidence_object>
                        </cis:evidence_test>
                        <cis:evidence_test check="all" check_existence="none_exist"
                                           comment="Ensure inted service 'shell' is disabled"
                                           negated="false"
                                           ns="independent"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10103"
                                           result="true"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10103"
                                           type="textfilecontent54_test">
                           <cis:evidence_object>
                              <cis:evidence_item itemref="1602">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                                    <cis:evidence_item_pk_field name="filename" value=".+"/>
                                    <cis:evidence_item_pk_field name="pattern" value="^shell\s+"/>
                                    <cis:evidence_item_pk_field name="instance" value="1"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                           </cis:evidence_object>
                        </cis:evidence_test>
                     </cis:and>
                     <cis:evidence_test check="all" check_existence="any_exist"
                                        comment="Ensure inted service 'exec' is disabled"
                                        negated="false"
                                        ns="unix"
                                        objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10107"
                                        result="true"
                                        testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10107"
                                        type="xinetd_test">
                        <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10052"/>
                     </cis:evidence_test>
                     <cis:evidence_test check="all" check_existence="none_exist"
                                        comment="Ensure inted service 'exec' is disabled"
                                        negated="false"
                                        ns="independent"
                                        objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10108"
                                        result="true"
                                        testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10108"
                                        type="textfilecontent54_test">
                        <cis:evidence_object>
                           <cis:evidence_item itemref="1604">
                              <cis:evidence_item_pk status="does not exist">
                                 <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                                 <cis:evidence_item_pk_field name="pattern" value="^exec\s+"/>
                                 <cis:evidence_item_pk_field name="instance" value="1"/>
                              </cis:evidence_item_pk>
                           </cis:evidence_item>
                        </cis:evidence_object>
                     </cis:evidence_test>
                     <cis:evidence_test check="all" check_existence="none_exist"
                                        comment="Ensure inted service 'exec' is disabled"
                                        negated="false"
                                        ns="independent"
                                        objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10109"
                                        result="true"
                                        testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10109"
                                        type="textfilecontent54_test">
                        <cis:evidence_object>
                           <cis:evidence_item itemref="1605">
                              <cis:evidence_item_pk status="does not exist">
                                 <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                                 <cis:evidence_item_pk_field name="filename" value=".+"/>
                                 <cis:evidence_item_pk_field name="pattern" value="^exec\s+"/>
                                 <cis:evidence_item_pk_field name="instance" value="1"/>
                              </cis:evidence_item_pk>
                           </cis:evidence_item>
                        </cis:evidence_object>
                     </cis:evidence_test>
                  </cis:and>
                  <cis:evidence_test check="all" check_existence="any_exist"
                                     comment="Ensure inted service 'rsh' is disabled"
                                     negated="false"
                                     ns="unix"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10110"
                                     result="true"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10110"
                                     type="xinetd_test">
                     <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10053"/>
                  </cis:evidence_test>
                  <cis:evidence_test check="all" check_existence="none_exist"
                                     comment="Ensure inted service 'rsh' is disabled"
                                     negated="false"
                                     ns="independent"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10111"
                                     result="true"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10111"
                                     type="textfilecontent54_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="1607">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                              <cis:evidence_item_pk_field name="pattern" value="^rsh\s+"/>
                              <cis:evidence_item_pk_field name="instance" value="1"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
                  <cis:evidence_test check="all" check_existence="none_exist"
                                     comment="Ensure inted service 'rsh' is disabled"
                                     negated="false"
                                     ns="independent"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10112"
                                     result="true"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10112"
                                     type="textfilecontent54_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="1608">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                              <cis:evidence_item_pk_field name="filename" value=".+"/>
                              <cis:evidence_item_pk_field name="pattern" value="^rsh\s+"/>
                              <cis:evidence_item_pk_field name="instance" value="1"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
               </cis:and>
               <cis:evidence_test check="all" check_existence="any_exist"
                                  comment="Ensure inted service 'rlogin' is disabled"
                                  negated="false"
                                  ns="unix"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10113"
                                  result="true"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10113"
                                  type="xinetd_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10054"/>
               </cis:evidence_test>
               <cis:evidence_test check="all" check_existence="none_exist"
                                  comment="Ensure inted service 'rlogin' is disabled"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10114"
                                  result="true"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10114"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="1610">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                           <cis:evidence_item_pk_field name="pattern" value="^rlogin\s+"/>
                           <cis:evidence_item_pk_field name="instance" value="1"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
               <cis:evidence_test check="all" check_existence="none_exist"
                                  comment="Ensure inted service 'rlogin' is disabled"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10115"
                                  result="true"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10115"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="1611">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                           <cis:evidence_item_pk_field name="filename" value=".+"/>
                           <cis:evidence_item_pk_field name="pattern" value="^rlogin\s+"/>
                           <cis:evidence_item_pk_field name="instance" value="1"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'resec' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10116"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10116"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10055"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'resec' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10117"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10117"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1613">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^resec\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'resec' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10118"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10118"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1614">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^resec\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <complex-check operator="AND">
         <complex-check operator="AND">
            <complex-check operator="AND">
               <complex-check operator="AND">
                  <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                     <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                        name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1090"/>
                  </check>
                  <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                     <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                        name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1091"/>
                  </check>
               </complex-check>
               <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                  <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                     name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1092"/>
               </check>
            </complex-check>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1093"/>
            </check>
         </complex-check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1094"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1095"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.7 Ensure talk server is not enabled

Description:

The talk software makes it possible for users to send and receive messages across systems through a terminal session. The talk client (allows initiate of talk sessions) is installed by default.

The software presents a security risk as it uses unencrypted protocols for communication.

Comment out or remove any lines starting with talk or ntalk from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all talk services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'talk' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'talk' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^talk\s+
Match Text: No match found
Ensure inted service 'talk' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^talk\s+
Match Text: No match found
Ensure inted service 'ntalk' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'ntalk' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^ntalk\s+
Match Text: No match found
Ensure inted service 'ntalk' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^ntalk\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.7_Ensure_talk_server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.058-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.059-06:00"
                    start-time="2017-02-13T20:11:58.032-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'talk' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10119"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10119"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10056"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'talk' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10120"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10120"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1616">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^talk\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'talk' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10121"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10121"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1617">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^talk\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'ntalk' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10122"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10122"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10057"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'ntalk' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10123"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10123"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1619">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^ntalk\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'ntalk' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10124"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10124"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1620">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^ntalk\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1096"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1097"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.8 Ensure telnet server is not enabled

Description:

The telnet-server package contains the telnet daemon, which accepts connections from users from other systems via the telnet protocol.

The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could allow a user with access to sniff network traffic the ability to steal credentials. The ssh package provides an encrypted session and stronger security.

Comment out or remove any lines starting with telnet from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all telnet services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'telnet' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'telnet' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^telnet\s+
Match Text: No match found
Ensure inted service 'telnet' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^telnet\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.8_Ensure_telnet_server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.074-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.074-06:00"
                    start-time="2017-02-13T20:11:58.061-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'telnet' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10125"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10125"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10058"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'telnet' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10126"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10126"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1622">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^telnet\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'telnet' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10127"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10127"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1623">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^telnet\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1098"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.9 Ensure tftp server is not enabled

Description:

Trivial File Transfer Protocol (TFTP) is a simple file transfer protocol, typically used to automatically transfer configuration or boot machines from a boot server. The packages tftp and atftp are both used to define and support a TFTP server.

TFTP does not support authentication nor does it ensure the confidentiality or integrity of data. It is recommended that TFTP be removed, unless there is a specific need for TFTP. In that case, extreme caution must be used when configuring the services.

Comment out or remove any lines starting with tftp from /etc/inetd.conf and /etc/inetd.d/*.

Set disable = yes on all tftp services in /etc/xinetd.conf and /etc/xinetd.d/*.

All of the following tests or sub-groups must pass:
Ensure inted service 'tftp' is disabled -- More
Check: All Must Pass
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.
Ensure inted service 'tftp' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.conf does not exist
Pattern: ^tftp\s+
Match Text: No match found
Ensure inted service 'tftp' is disabled -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/inetd.d/.+ does not exist
Pattern: ^tftp\s+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.9_Ensure_tftp_server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.087-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.088-06:00"
                    start-time="2017-02-13T20:11:58.075-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure inted service 'tftp' is disabled"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10128"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10128"
                               type="xinetd_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10059"/>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'tftp' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10129"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10129"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1625">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/inetd.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^tftp\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure inted service 'tftp' is disabled"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10130"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10130"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1626">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/etc/inetd.d"/>
                        <cis:evidence_item_pk_field name="filename" value=".+"/>
                        <cis:evidence_item_pk_field name="pattern" value="^tftp\s+"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1099"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.1.10 Ensure xinetd is not enabled

Description:

The eXtended InterNET Daemon (xinetd) is an open source super daemon that replaced the original inetd daemon. The xinetd daemon listens for well known services and dispatches the appropriate daemon to properly respond to service requests.

If there are no xinetd services required, it is recommended that the daemon be disabled.

Run the following command to disable xinetd:

# systemctl disable xinetd

Ensure standard service 'xinetd' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled xinetd.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.1.10_Ensure_xinetd_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:57.852-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:57.852-06:00"
                    start-time="2017-02-13T20:11:57.834-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'xinetd' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10131"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10131"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10060">
                  <cis:evidence_item entity_check="at least one" itemref="1580">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled xinetd.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1100"/>
      </check>
   </complex-check>
</rule-result>

2.2 Special Purpose Services

This section describes services that are installed on systems that specifically need to run these services. If any of these services are not required, it is recommended that they be disabled or deleted from the system to reduce the potential attack surface.

2.2.1 Time Synchronization

It is recommended that physical systems and virtual guests lacking direct access to the physical host's clock be configured to synchronize their time using a service such as NTP or chrony.

Informational

2.2.1.1 Ensure time synchronization is in use

Description:

System time should be synchronized between all systems in an environment. This is typically done by establishing an authoritative time server or set of servers and having all systems synchronize their clocks to them.

Time synchronization is important to support time sensitive security mechanisms like Kerberos and also ensures log files have consistent time records across the enterprise, which aids in forensic investigations.

On physical systems or virtual systems where host based time synchronization is not available install NTP or chrony using one of the following commands:

# apt-get install ntp
# apt-get install chrony

On virtual systems where host based time synchronization is available consult your virtualization software documentation and setup host based synchronization.

Any of the following tests or sub-groups may pass:
Ensure package name equals 'chrony' is installed -- Less
CIS-CAT expected to collect at least 1 matching dpkg Package, and found 0 items.
Package Name: chrony does not exist
Ensure package name equals 'ntp' is installed -- Less
CIS-CAT expected to collect at least 1 matching dpkg Package, and found 0 items.
Package Name: ntp does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.1_Ensure_time_synchronization_is_in_use"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:11:58.205-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.208-06:00"
                    start-time="2017-02-13T20:11:58.090-06:00">
         <cis:or>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure package name equals 'chrony' is installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10133"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10133"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1627">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="chrony"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure package name equals 'ntp' is installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10132"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10132"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1628">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="ntp"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1101"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1102"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.1.2 Ensure ntp is configured

Description:

ntp is a daemon which implements the Network Time Protocol (NTP). It is designed to synchronize system clocks across a variety of systems and use a source that is highly accurate. More information on NTP can be found at http://www.ntp.org . ntp can be configured to be a client and/or a server.


This recommendation only applies if ntp is in use on the system.

If ntp is in use on the system proper configuration is vital to ensuring time synchronization is working properly.

Add or edit restrict lines in /etc/ntp.conf to match the following:

restrict -4 default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

Add or edit server lines to /etc/ntp.conf as appropriate:

server <remote-server>

Configure ntp to run as the ntp user by adding or editing the following file:

/etc/init.d/ntp:

RUNASUSER=ntp

Any of the following tests or sub-groups may pass:
Ensure package name equals 'ntp' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: ntp does not exist
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/init.d/ntp exists and matches pattern ^\s*RUNASUSER\s*=\s*ntp\s*(?:#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/init.d/ntp does not exist
Pattern: ^\s*RUNASUSER\s*=\s*ntp\s*(?:#.*)?$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/ntp.conf exists and matches pattern ^\s*server\s+\S+ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ntp.conf does not exist
Pattern: ^\s*server\s+\S+
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/ntp.conf exists and matches pattern ^\s*restrict\s+(-4\s+)?default(?=[^#]*\s+kod)(?=[^#]*\s+nomodify)(?=[^#]*\s+notrap)(?=[^#]*\s+nopeer)(?=[^#]*\s+noquery)(\s+kod|\s+nomodify|\s+notrap|\s+nopeer|\s+noquery)*\s*(?:#.*)? -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ntp.conf does not exist
Pattern: ^\s*restrict\s+(-4\s+)?default(?=[^#]*\s+kod)(?=[^#]*\s+nomodify)(?=[^#]*\s+notrap)(?=[^#]*\s+nopeer)(?=[^#]*\s+noquery)(\s+kod|\s+nomodify|\s+notrap|\s+nopeer|\s+noquery)*\s*(?:#.*)?$
Match Text: No match found
Ensure at least one file named /etc/ntp.conf exists and matches pattern ^\s*restrict\s+-6\s+default(?=[^#]*\s+kod)(?=[^#]*\s+nomodify)(?=[^#]*\s+notrap)(?=[^#]*\s+nopeer)(?=[^#]*\s+noquery)(\s+kod|\s+nomodify|\s+notrap|\s+nopeer|\s+noquery)*\s*(?:#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ntp.conf does not exist
Pattern: ^\s*restrict\s+-6\s+default(?=[^#]*\s+kod)(?=[^#]*\s+nomodify)(?=[^#]*\s+notrap)(?=[^#]*\s+nopeer)(?=[^#]*\s+noquery)(\s+kod|\s+nomodify|\s+notrap|\s+nopeer|\s+noquery)*\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.2_Ensure_ntp_is_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.278-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.279-06:00"
                    start-time="2017-02-13T20:11:58.209-06:00">
         <cis:or>
            <cis:and>
               <cis:and>
                  <cis:and>
                     <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                        comment="Ensure at least one file named /etc/ntp.conf exists and matches pattern ^\s*restrict\s+(-4\s+)?default(?=[^#]*\s+kod)(?=[^#]*\s+nomodify)(?=[^#]*\s+notrap)(?=[^#]*\s+nopeer)(?=[^#]*\s+noquery)(\s+kod|\s+nomodify|\s+notrap|\s+nopeer|\s+noquery)*\s*(?:#.*)?"
                                        negated="false"
                                        ns="independent"
                                        objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10134"
                                        result="false"
                                        testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10134"
                                        type="textfilecontent54_test">
                        <cis:evidence_object>
                           <cis:evidence_item itemref="1629">
                              <cis:evidence_item_pk status="does not exist">
                                 <cis:evidence_item_pk_field name="filepath" value="/etc/ntp.conf"/>
                                 <cis:evidence_item_pk_field name="pattern"
                                                             value="^\s*restrict\s+(-4\s+)?default(?=[^#]*\s+kod)(?=[^#]*\s+nomodify)(?=[^#]*\s+notrap)(?=[^#]*\s+nopeer)(?=[^#]*\s+noquery)(\s+kod|\s+nomodify|\s+notrap|\s+nopeer|\s+noquery)*\s*(?:#.*)?$"/>
                                 <cis:evidence_item_pk_field name="instance" value="1"/>
                              </cis:evidence_item_pk>
                           </cis:evidence_item>
                        </cis:evidence_object>
                     </cis:evidence_test>
                     <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                        comment="Ensure at least one file named /etc/ntp.conf exists and matches pattern ^\s*restrict\s+-6\s+default(?=[^#]*\s+kod)(?=[^#]*\s+nomodify)(?=[^#]*\s+notrap)(?=[^#]*\s+nopeer)(?=[^#]*\s+noquery)(\s+kod|\s+nomodify|\s+notrap|\s+nopeer|\s+noquery)*\s*(?:#.*)?$"
                                        negated="false"
                                        ns="independent"
                                        objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10135"
                                        result="false"
                                        testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10135"
                                        type="textfilecontent54_test">
                        <cis:evidence_object>
                           <cis:evidence_item itemref="1630">
                              <cis:evidence_item_pk status="does not exist">
                                 <cis:evidence_item_pk_field name="filepath" value="/etc/ntp.conf"/>
                                 <cis:evidence_item_pk_field name="pattern"
                                                             value="^\s*restrict\s+-6\s+default(?=[^#]*\s+kod)(?=[^#]*\s+nomodify)(?=[^#]*\s+notrap)(?=[^#]*\s+nopeer)(?=[^#]*\s+noquery)(\s+kod|\s+nomodify|\s+notrap|\s+nopeer|\s+noquery)*\s*(?:#.*)?$"/>
                                 <cis:evidence_item_pk_field name="instance" value="1"/>
                              </cis:evidence_item_pk>
                           </cis:evidence_item>
                        </cis:evidence_object>
                     </cis:evidence_test>
                  </cis:and>
                  <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                     comment="Ensure at least one file named /etc/ntp.conf exists and matches pattern ^\s*server\s+\S+"
                                     negated="false"
                                     ns="independent"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10136"
                                     result="false"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10136"
                                     type="textfilecontent54_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="1631">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/ntp.conf"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\s*server\s+\S+"/>
                              <cis:evidence_item_pk_field name="instance" value="1"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
               </cis:and>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file named /etc/init.d/ntp exists and matches pattern ^\s*RUNASUSER\s*=\s*ntp\s*(?:#.*)?$"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10137"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10137"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="1632">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/init.d/ntp"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\s*RUNASUSER\s*=\s*ntp\s*(?:#.*)?$"/>
                           <cis:evidence_item_pk_field name="instance" value="1"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'ntp' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10138"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10138"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1633">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="ntp"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <complex-check operator="AND">
         <complex-check operator="AND">
            <complex-check operator="AND">
               <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                  <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1103"
                                value-id="xccdf_org.cisecurity.benchmarks_value_2.2.1.2.1_var"/>
                  <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                     name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1103"/>
               </check>
               <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                  <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1104"
                                value-id="xccdf_org.cisecurity.benchmarks_value_2.2.1.2.2_var"/>
                  <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                     name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1104"/>
               </check>
            </complex-check>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1105"
                             value-id="xccdf_org.cisecurity.benchmarks_value_2.2.1.2.3_var"/>
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1105"/>
            </check>
         </complex-check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1106"
                          value-id="xccdf_org.cisecurity.benchmarks_value_2.2.1.2.4_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1106"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1107"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.1.3 Ensure chrony is configured

Description:

chrony is a daemon which implements the Network Time Protocol (NTP) is designed to synchronize system clocks across a variety of systems and use a source that is highly accurate. More information on chrony can be found at http://chrony.tuxfamily.org/ . chrony can be configured to be a client and/or a server.

If chrony is in use on the system proper configuration is vital to ensuring time synchronization is working properly.

This recommendation only applies if chrony is in use on the system.

Add or edit server lines to /etc/chrony/chrony.conf as appropriate:

server <remote-server>

Configure chrony to run as the chrony user by configuring the appropriate startup script for your distribution. Startup scripts are typically stored in /etc/init.d or /etc/systemd.

Any of the following tests or sub-groups may pass:
Ensure package name equals 'chrony' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: chrony does not exist
All of the following tests or sub-groups must pass:
Linux Custom Object "chronyd is running as chrony user" -- More
CIS-CAT did not expect to collect any matching Process items, and found 0 items.
Command-Line: ^chronyd, PID: 0 does not exist
Ensure at least one file named /etc/chrony/chrony.conf exists and matches pattern ^\s*server\s+\S+ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/chrony/chrony.conf does not exist
Pattern: ^\s*server\s+\S+
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.1.3_Ensure_chrony_is_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.451-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.451-06:00"
                    start-time="2017-02-13T20:11:58.284-06:00">
         <cis:or>
            <cis:and>
               <cis:evidence_test check="all" check_existence="none_exist"
                                  comment="Linux Custom Object &#34;chronyd is running as chrony user&#34;"
                                  negated="false"
                                  ns="unix"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10140"
                                  result="true"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10140"
                                  type="process58_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="1635">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="command_line" value="^chronyd"/>
                           <cis:evidence_item_pk_field name="pid" value="0"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file named /etc/chrony/chrony.conf exists and matches pattern ^\s*server\s+\S+"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10139"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10139"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="1636">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/chrony/chrony.conf"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\s*server\s+\S+"/>
                           <cis:evidence_item_pk_field name="instance" value="1"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'chrony' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10142"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10141"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1637">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="chrony"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <complex-check operator="AND">
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1108"
                          value-id="xccdf_org.cisecurity.benchmarks_value_2.2.1.3.1_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1108"/>
         </check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1109"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1110"/>
      </check>
   </complex-check>
</rule-result>
Fail

2.2.2 Ensure X Window System is not installed

Description:

The X Window System provides a Graphical User Interface (GUI) where users can have multiple windows in which to run programs and various add on. The X Windows system is typically used on workstations where users login, but not on servers where users typically do not login.

Unless your organization specifically requires graphical login access via X Windows, remove it to reduce the potential attack surface.

Run the following command to remove the X Windows System packages:

apt-get remove xserver-xorg*

Ensure package name pattern match '^xserver-xorg.*' is not installed -- Less
CIS-CAT did not expect to collect any matching dpkg Packages, and found 17 items.
Package Name: xserver-xorg exists
Package Name: xserver-xorg-core exists
Package Name: xserver-xorg-input-all exists
Package Name: xserver-xorg-input-evdev exists
Package Name: xserver-xorg-input-synaptics exists
Package Name: xserver-xorg-input-vmmouse exists
Package Name: xserver-xorg-input-wacom exists
Package Name: xserver-xorg-video-all exists
Package Name: xserver-xorg-video-amdgpu exists
Package Name: xserver-xorg-video-ati exists
Package Name: xserver-xorg-video-fbdev exists
Package Name: xserver-xorg-video-intel exists
Package Name: xserver-xorg-video-nouveau exists
Package Name: xserver-xorg-video-qxl exists
Package Name: xserver-xorg-video-radeon exists
Package Name: xserver-xorg-video-vesa exists
Package Name: xserver-xorg-video-vmware exists

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.2_Ensure_X_Window_System_is_not_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.467-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    definition_id="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1111"
                    definition_negate="false">
         <cis:and negated="false" result="false">
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name pattern match '^xserver-xorg.*' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10143"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10142"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1653">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1654">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-core"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1655">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-input-all"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1656">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-input-evdev"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1657">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-input-synaptics"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1658">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-input-vmmouse"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1659">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-input-wacom"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1660">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-all"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1661">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-amdgpu"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1662">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-ati"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1663">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-fbdev"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1664">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-intel"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1665">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-nouveau"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1666">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-qxl"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1667">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-radeon"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1668">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-vesa"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1669">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="xserver-xorg-video-vmware"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
      <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                         name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1111"/>
   </check>
</rule-result>
Fail

2.2.3 Ensure Avahi Server is not enabled

Description:

Avahi is a free zeroconf implementation, including a system for multicast DNS/DNS-SD service discovery. Avahi allows programs to publish and discover services and hosts running on a local network with no specific configuration. For example, a user can plug a computer into a network and Avahi automatically finds printers to print to, files to look at and people to talk to, as well as network services running on the machine.

Automatic discovery of network services is not normally required for system functionality. It is recommended to disable the service to reduce the potential attach surface.

Run the following command to disable avahi-daemon:

# systemctl disable avahi-daemon

Ensure standard service 'avahi-daemon' is disabled -- Less
Check: All Must Pass
Command: systemctl is-enabled avahi-daemon.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+ enabled

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.3_Ensure_Avahi_Server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.491-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.491-06:00"
                    start-time="2017-02-13T20:11:59.469-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'avahi-daemon' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10144"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10143"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10062">
                  <cis:evidence_item entity_check="at least one" itemref="1670">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled avahi-daemon.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="enabled" dt="string" ev=".+" name="stdout_line" op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1112"/>
      </check>
   </complex-check>
</rule-result>
Fail

2.2.4 Ensure CUPS is not enabled

Description:

The Common Unix Print System (CUPS) provides the ability to print to both local and network printers. A system running CUPS can also accept print jobs from remote systems and print them to local printers. It also provides a web based remote administration capability.

If the system does not need to print jobs or accept print jobs from other systems, it is recommended that CUPS be disabled to reduce the potential attack surface.

Run the following command to disable cups:

# systemctl disable cups

Impact:

Disabling CUPS will prevent printing from the system, a common task for workstation systems.

Ensure standard service 'cups' is disabled -- Less
Check: All Must Pass
Command: systemctl is-enabled cups.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+ enabled

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.4_Ensure_CUPS_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.512-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.512-06:00"
                    start-time="2017-02-13T20:11:59.492-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'cups' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10145"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10144"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10063">
                  <cis:evidence_item entity_check="at least one" itemref="1671">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled cups.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="enabled" dt="string" ev=".+" name="stdout_line" op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1113"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.5 Ensure DHCP Server is not enabled

Description:

The Dynamic Host Configuration Protocol (DHCP) is a service that allows machines to be dynamically assigned IP addresses.

Unless a system is specifically set up to act as a DHCP server, it is recommended that this service be deleted to reduce the potential attack surface.

Run the following commands to disable dhcpd:

# systemctl disable isc-dhcp-server
# systemctl disable isc-dhcp-server6

All of the following tests or sub-groups must pass:
Ensure standard service 'isc-dhcp-server' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled isc-dhcp-server.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+
Ensure standard service 'isc-dhcp-server6' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled isc-dhcp-server6.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.5_Ensure_DHCP_Server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.544-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.544-06:00"
                    start-time="2017-02-13T20:11:59.513-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'isc-dhcp-server' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10146"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10145"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10064">
                  <cis:evidence_item entity_check="at least one" itemref="1672">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled isc-dhcp-server.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'isc-dhcp-server6' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10147"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10146"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10065">
                  <cis:evidence_item entity_check="at least one" itemref="1673">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled isc-dhcp-server6.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1114"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1115"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.6 Ensure LDAP server is not enabled

Description:

The Lightweight Directory Access Protocol (LDAP) was introduced as a replacement for NIS/YP. It is a service that provides a method for looking up information from a central database.

If the system will not need to act as an LDAP server, it is recommended that the software be disabled to reduce the potential attack surface.

Run the following command to disable slapd:

# systemctl disable slapd

Ensure standard service 'slapd' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled slapd.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.6_Ensure_LDAP_server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.564-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.565-06:00"
                    start-time="2017-02-13T20:11:59.545-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'slapd' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10148"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10147"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10066">
                  <cis:evidence_item entity_check="at least one" itemref="1674">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled slapd.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1116"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.7 Ensure NFS and RPC are not enabled

Description:

The Network File System (NFS) is one of the first and most widely distributed file systems in the UNIX environment. It provides the ability for systems to mount file systems of other servers through the network.

If the system does not export NFS shares or act as an NFS client, it is recommended that these services be disabled to reduce remote attack surface.

Run the following commands to disable nfs and rpcbind:

# systemctl disable nfs-kernel-server
# systemctl disable rpcbind

All of the following tests or sub-groups must pass:
Ensure standard service 'nfs-kernel-server' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled nfs-kernel-server.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+
Ensure standard service 'rpcbind' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled rpcbind.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.7_Ensure_NFS_and_RPC_are_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.600-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.600-06:00"
                    start-time="2017-02-13T20:11:59.565-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'nfs-kernel-server' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10149"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10148"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10067">
                  <cis:evidence_item entity_check="at least one" itemref="1675">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled nfs-kernel-server.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'rpcbind' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10150"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10149"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10068">
                  <cis:evidence_item entity_check="at least one" itemref="1676">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled rpcbind.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1117"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1118"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.8 Ensure DNS Server is not enabled

Description:

The Domain Name System (DNS) is a hierarchical naming system that maps names to IP addresses for computers, services and other resources connected to a network.

Unless a system is specifically designated to act as a DNS server, it is recommended that the package be deleted to reduce the potential attack surface.

Run the following command to disable named:

# systemctl disable bind9

Ensure standard service 'bind9' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled bind9.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.8_Ensure_DNS_Server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.620-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.620-06:00"
                    start-time="2017-02-13T20:11:59.601-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'bind9' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10151"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10150"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10069">
                  <cis:evidence_item entity_check="at least one" itemref="1677">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled bind9.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1119"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.9 Ensure FTP Server is not enabled

Description:

The File Transfer Protocol (FTP) provides networked computers with the ability to transfer files.

FTP does not protect the confidentiality of data or authentication credentials. It is recommended sftp be used if file transfer is required. Unless there is a need to run the system as a FTP server (for example, to allow anonymous downloads), it is recommended that the package be deleted to reduce the potential attack surface.

Run the following command to disable vsftpd:

# systemctl disable vsftpd

Ensure standard service 'vsftpd' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled vsftpd.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.9_Ensure_FTP_Server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.635-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.635-06:00"
                    start-time="2017-02-13T20:11:59.621-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'vsftpd' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10152"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10151"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10070">
                  <cis:evidence_item entity_check="at least one" itemref="1678">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled vsftpd.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1120"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.10 Ensure HTTP server is not enabled

Description:

HTTP or web servers provide the ability to host web site content.

Unless there is a need to run the system as a web server, it is recommended that the package be deleted to reduce the potential attack surface.

Run the following command to disable apache2:

# systemctl disable apache2

Ensure standard service 'apache2' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled apache2.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.10_Ensure_HTTP_server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.468-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.468-06:00"
                    start-time="2017-02-13T20:11:58.453-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'apache2' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10153"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10152"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10071">
                  <cis:evidence_item entity_check="at least one" itemref="1638">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled apache2.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1121"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.11 Ensure IMAP and POP3 server is not enabled

Description:

dovecot is an open source IMAP and POP3 server for Linux based systems.

Unless POP3 and/or IMAP servers are to be provided by this system, it is recommended that the service be deleted to reduce the potential attack surface.

Run the following command to disable dovecot:

# systemctl disable dovecot

Ensure standard service 'dovecot' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled dovecot.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.11_Ensure_IMAP_and_POP3_server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.483-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.483-06:00"
                    start-time="2017-02-13T20:11:58.468-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'dovecot' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10154"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10153"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10072">
                  <cis:evidence_item entity_check="at least one" itemref="1639">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled dovecot.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1122"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.12 Ensure Samba is not enabled

Description:

The Samba daemon allows system administrators to configure their Linux systems to share file systems and directories with Windows desktops. Samba will advertise the file systems and directories via the Small Message Block (SMB) protocol. Windows desktop users will be able to mount these directories and file systems as letter drives on their systems.

If there is no need to mount directories and file systems to Windows systems, then this service can be deleted to reduce the potential attack surface.

Run the following command to disable smbd:

# systemctl disable smbd

Ensure standard service 'smbd' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled smbd.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.12_Ensure_Samba_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.501-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.501-06:00"
                    start-time="2017-02-13T20:11:58.484-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'smbd' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10155"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10154"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10073">
                  <cis:evidence_item entity_check="at least one" itemref="1640">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled smbd.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1123"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.13 Ensure HTTP Proxy Server is not enabled

Description:

Squid is a standard proxy server used in many distributions and environments.

If there is no need for a proxy server, it is recommended that the squid proxy be deleted to reduce the potential attack surface.

Run the following command to disable squid:

# systemctl disable squid

Ensure standard service 'squid' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled squid.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.13_Ensure_HTTP_Proxy_Server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.518-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.518-06:00"
                    start-time="2017-02-13T20:11:58.501-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'squid' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10156"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10155"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10074">
                  <cis:evidence_item entity_check="at least one" itemref="1641">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled squid.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1124"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.14 Ensure SNMP Server is not enabled

Description:

The Simple Network Management Protocol (SNMP) server is used to listen for SNMP commands from an SNMP management system, execute the commands or collect the information and then send results back to the requesting system.

The SNMP server communicates using SNMP v1, which transmits data in the clear and does not require authentication to execute commands. Unless absolutely necessary, it is recommended that the SNMP service not be used.

Run the following command to disable snmpd:

# systemctl disable snmpd

Ensure standard service 'snmpd' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled snmpd.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.14_Ensure_SNMP_Server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.532-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.533-06:00"
                    start-time="2017-02-13T20:11:58.519-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'snmpd' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10157"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10156"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10075">
                  <cis:evidence_item entity_check="at least one" itemref="1642">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled snmpd.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1125"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.15 Ensure mail transfer agent is configured for local-only mode

Description:

Mail Transfer Agents (MTA), such as sendmail and Postfix, are used to listen for incoming mail and transfer the messages to the appropriate user or mail server. If the system is not intended to be a mail server, it is recommended that the MTA be configured to only process local mail.

The software for all Mail Transfer Agents is complex and most have a long history of security issues. While it is important to ensure that the system can process local mail messages, it is not necessary to have the MTA's daemon listening on a port unless the server is intended to be a mail server that receives and processes mail from other systems.

Edit /etc/postfix/main.cf and add the following line to the RECEIVING MAIL section. If the line already exists, change it to look like the line below:

inet_interfaces = localhost

Restart postfix:

# service postfix restart

Linux Custom Object "No Servers Listening On Port 25" -- More
CIS-CAT did not expect to collect any matching items, and found 0 items.
Protocol: .*, Local Address: ^(?!127\.0\.0\.1|::1).*$, Local Port: 25 does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.15_Ensure_mail_transfer_agent_is_configured_for_local-only_mode"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.603-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.604-06:00"
                    start-time="2017-02-13T20:11:58.534-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Linux Custom Object &#34;No Servers Listening On Port 25&#34;"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10158"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10157"
                               type="inetlisteningservers_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1650">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="protocol" value=".*"/>
                        <cis:evidence_item_pk_field name="local_address" value="^(?!127\.0\.0\.1|::1).*$"/>
                        <cis:evidence_item_pk_field name="local_port" value="25"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1126"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.16 Ensure rsync service is not enabled

Description:

The rsyncd service can be used to synchronize files between systems over network links.

The rsyncd service presents a security risk as it uses unencrypted protocols for communication.

Run the following command to disable rsync:

# systemctl disable rsync

Ensure standard service 'rsync' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled rsync.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.16_Ensure_rsync_service_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.626-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.626-06:00"
                    start-time="2017-02-13T20:11:58.604-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'rsync' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10159"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10158"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10076">
                  <cis:evidence_item entity_check="at least one" itemref="1651">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled rsync.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1127"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.2.17 Ensure NIS Server is not enabled

Description:

The Network Information Service (NIS) (formally known as Yellow Pages) is a client-server directory service protocol for distributing system configuration files. The NIS server is a collection of programs that allow for the distribution of configuration files.

The NIS service is inherently an insecure system that has been vulnerable to DOS attacks, buffer overflows and has poor authentication for querying NIS maps. NIS generally been replaced by such protocols as Lightweight Directory Access Protocol (LDAP). It is recommended that the service be disabled and other, more secure services be used

Run the following command to disable nis:

# systemctl disable nis

Ensure standard service 'nis' is disabled -- More
Check: All Must Pass
Command: systemctl is-enabled nis.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.2.17_Ensure_NIS_Server_is_not_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:58.639-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:58.639-06:00"
                    start-time="2017-02-13T20:11:58.627-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'nis' is disabled"
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10160"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10159"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10077">
                  <cis:evidence_item entity_check="at least one" itemref="1652">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled nis.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1128"/>
      </check>
   </complex-check>
</rule-result>

2.3 Service Clients

A number of insecure services exist. While disabling the servers prevents a local attack against these services, it is advised to remove their clients unless they are required.

Note : This should not be considered a comprehensive list of insecure service clients. You may wish to consider additions to those listed here for your environment.

Pass

2.3.1 Ensure NIS Client is not installed

Description:

The Network Information Service (NIS), formerly known as Yellow Pages, is a client-server directory service protocol used to distribute system configuration files. The NIS client (ypbind) was used to bind a machine to an NIS server and receive the distributed configuration files.

The NIS service is inherently an insecure system that has been vulnerable to DOS attacks, buffer overflows and has poor authentication for querying NIS maps. NIS generally has been replaced by such protocols as Lightweight Directory Access Protocol (LDAP). It is recommended that the service be removed.

Run the following command to uninstall nis :

apt-get remove nis

Impact:

Many insecure service clients are used as troubleshooting tools and in testing environments. Uninstalling them can inhibit capability to test and troubleshoot. If they are required it is advisable to remove the clients after use to prevent accidental or intentional misuse.

Ensure package name equals 'nis' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: nis does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.3.1_Ensure_NIS_Client_is_not_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.700-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.701-06:00"
                    start-time="2017-02-13T20:11:59.636-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'nis' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10161"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10160"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1679">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="nis"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1129"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.3.2 Ensure rsh client is not installed

Description:

The rsh package contains the client commands for the rsh services.

These legacy clients contain numerous security exposures and have been replaced with the more secure SSH package. Even if the server is removed, it is best to ensure the clients are also removed to prevent users from inadvertently attempting to use these commands and therefore exposing their credentials. Note that removing the rsh package removes the clients for rsh, rcp and rlogin.

Run the following command to uninstall rsh:

apt-get remove rsh-client rsh-redone-client

Impact:

Many insecure service clients are used as troubleshooting tools and in testing environments. Uninstalling them can inhibit capability to test and troubleshoot. If they are required it is advisable to remove the clients after use to prevent accidental or intentional misuse.

All of the following tests or sub-groups must pass:
Ensure package name equals 'rsh-redone-client' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: rsh-redone-client does not exist
Ensure package name equals 'rsh-client' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: rsh-client does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.3.2_Ensure_rsh_client_is_not_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.773-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.773-06:00"
                    start-time="2017-02-13T20:11:59.701-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'rsh-redone-client' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10163"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10162"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1680">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="rsh-redone-client"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'rsh-client' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10162"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10161"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1681">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="rsh-client"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1130"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1131"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.3.3 Ensure talk client is not installed

Description:

The talk software makes it possible for users to send and receive messages across systems through a terminal session. The talk client, which allows initialization of talk sessions, is installed by default.

The software presents a security risk as it uses unencrypted protocols for communication.

Run the following command to uninstall talk:

apt-get remove talk

Impact:

Many insecure service clients are used as troubleshooting tools and in testing environments. Uninstalling them can inhibit capability to test and troubleshoot. If they are required it is advisable to remove the clients after use to prevent accidental or intentional misuse.

Ensure package name equals 'talk' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: talk does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.3.3_Ensure_talk_client_is_not_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.814-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.814-06:00"
                    start-time="2017-02-13T20:11:59.774-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'talk' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10164"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10163"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1682">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="talk"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1132"/>
      </check>
   </complex-check>
</rule-result>
Fail

2.3.4 Ensure telnet client is not installed

Description:

The telnet package contains the telnet client, which allows users to start connections to other systems via the telnet protocol.

The telnet protocol is insecure and unencrypted. The use of an unencrypted transmission medium could allow an unauthorized user to steal credentials. The ssh package provides an encrypted session and stronger security and is included in most Linux distributions.

Run the following command to uninstall telnet:

# apt-get remove telnet

Impact:

Many insecure service clients are used as troubleshooting tools and in testing environments. Uninstalling them can inhibit capability to test and troubleshoot. If they are required it is advisable to remove the clients after use to prevent accidental or intentional misuse.

Ensure package name equals 'telnet' is not installed -- Less
CIS-CAT did not expect to collect any matching dpkg Packages, and found 1 item.
Package Name: telnet exists

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.3.4_Ensure_telnet_client_is_not_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.850-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.850-06:00"
                    start-time="2017-02-13T20:11:59.815-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'telnet' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10165"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10164"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1683">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="telnet"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1133"/>
      </check>
   </complex-check>
</rule-result>
Pass

2.3.5 Ensure LDAP client is not installed

Description:

The Lightweight Directory Access Protocol (LDAP) was introduced as a replacement for NIS/YP. It is a service that provides a method for looking up information from a central database.

If the system will not need to act as an LDAP client, it is recommended that the software be removed to reduce the potential attack surface.

Uninstall ldap-utils using the appropriate package manager or manual installation:

# apt-get remove ldap-utils

Impact:

Removing the LDAP client will prevent or inhibit using LDAP for authentication in your environment.

Ensure package name equals 'ldap-utils' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: ldap-utils does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_2.3.5_Ensure_LDAP_client_is_not_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.887-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.887-06:00"
                    start-time="2017-02-13T20:11:59.852-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'ldap-utils' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10166"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10165"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1684">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="ldap-utils"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1134"/>
      </check>
   </complex-check>
</rule-result>

3 Network Configuration

This section provides guidance on for securing the network configuration of the system through kernel parameters, access list control, and firewall settings.

3.1 Network Parameters (Host Only)

The following network parameters are intended for use if the system is to act as a host only. A system is considered host only if the system has a single interface, or has multiple interfaces but will not be configured as a router.

Pass

3.1.1 Ensure IP forwarding is disabled

Description:

The net.ipv4.ip_forward flag is used to tell the system whether it can forward packets or not.

Setting the flag to 0 ensures that a system with multiple interfaces (for example, a hard proxy), will never be able to forward packets, and therefore, never serve as a router.

Set the following parameter in the /etc/sysctl.conf file:

net.ipv4.ip_forward = 0

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.ip_forward=0
# sysctl -w net.ipv4.route.flush=1

Ensure 'net.ipv4.ip_forward' kernel parameter equals 0 (int) -- More
Check: All Must Pass
Kernel Parameter: net.ipv4.ip_forward
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.ip_forward net.ipv4.ip_forward
the Kernel Parameter Value to be set to 0 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.1.1_Ensure_IP_forwarding_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.898-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.899-06:00"
                    start-time="2017-02-13T20:11:59.888-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.ip_forward' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10167"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10166"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10078">
                  <cis:evidence_item itemref="1150">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.ip_forward"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.ip_forward" dt="string" ev="net.ipv4.ip_forward" name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1135"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.1.1.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1135"/>
      </check>
   </complex-check>
</rule-result>
Fail

3.1.2 Ensure packet redirect sending is disabled

Description:

ICMP Redirects are used to send routing information to other hosts. As a host itself does not act as a router (in a host only configuration), there is no need to send redirects.

An attacker could use a compromised host to send invalid ICMP redirects to other router devices in an attempt to corrupt routing and have users access a system set up by the attacker as opposed to a valid system.

Set the following parameters in the /etc/sysctl.conf file:

net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.default.send_redirects = 0

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.conf.all.send_redirects=0
# sysctl -w net.ipv4.conf.default.send_redirects=0
# sysctl -w net.ipv4.route.flush=1

All of the following tests or sub-groups must pass:
Ensure 'net.ipv4.conf.all.send_redirects' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.all.send_redirects
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.all.send_redirects net.ipv4.conf.all.send_redirects
the Kernel Parameter Value to be set to 0 1
Ensure 'net.ipv4.conf.default.send_redirects' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.default.send_redirects
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.default.send_redirects net.ipv4.conf.default.send_redirects
the Kernel Parameter Value to be set to 0 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.1.2_Ensure_packet_redirect_sending_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.911-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.911-06:00"
                    start-time="2017-02-13T20:11:59.900-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.all.send_redirects' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10168"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10167"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10079">
                  <cis:evidence_item itemref="1040">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.all.send_redirects"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.all.send_redirects" dt="string"
                                         ev="net.ipv4.conf.all.send_redirects"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.default.send_redirects' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10169"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10168"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10080">
                  <cis:evidence_item itemref="1069">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.default.send_redirects"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.default.send_redirects" dt="string"
                                         ev="net.ipv4.conf.default.send_redirects"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1136"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.1.2.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1136"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1137"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.1.2.2_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1137"/>
      </check>
   </complex-check>
</rule-result>

3.2 Network Parameters (Host and Router)

The following network parameters are intended for use on both host only and router systems. A system acts as a router if it has at least two interfaces and is configured to perform routing functions.

Fail

3.2.1 Ensure source routed packets are not accepted

Description:

In networking, source routing allows a sender to partially or fully specify the route packets take through a network. In contrast, non-source routed packets travel a path determined by routers in the network. In some cases, systems may not be routable or reachable from some locations (e.g. private addresses vs. Internet routable), and so source routed packets would need to be used.

Setting net.ipv4.conf.all.accept_source_route and net.ipv4.conf.default.accept_source_route to 0 disables the system from accepting source routed packets. Assume this system was capable of routing packets to Internet routable addresses on one interface and private addresses on another interface. Assume that the private addresses were not routable to the Internet routable addresses and vice versa. Under normal routing circumstances, an attacker from the Internet routable addresses could not use the system as a way to reach the private address systems. If, however, source routed packets were allowed, they could be used to gain access to the private address systems as the route could be specified, rather than rely on routing protocols that did not allow this routing.

Set the following parameters in the /etc/sysctl.conf file:

net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.conf.all.accept_source_route=0
# sysctl -w net.ipv4.conf.default.accept_source_route=0
# sysctl -w net.ipv4.route.flush=1

All of the following tests or sub-groups must pass:
Ensure 'net.ipv4.conf.all.accept_source_route' kernel parameter equals 0 (int) -- More
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.all.accept_source_route
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.all.accept_source_route net.ipv4.conf.all.accept_source_route
the Kernel Parameter Value to be set to 0 0
Ensure 'net.ipv4.conf.default.accept_source_route' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.default.accept_source_route
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.default.accept_source_route net.ipv4.conf.default.accept_source_route
the Kernel Parameter Value to be set to 0 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.2.1_Ensure_source_routed_packets_are_not_accepted"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.927-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.927-06:00"
                    start-time="2017-02-13T20:11:59.912-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.all.accept_source_route' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10170"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10169"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10081">
                  <cis:evidence_item itemref="1017">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.all.accept_source_route"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.all.accept_source_route" dt="string"
                                         ev="net.ipv4.conf.all.accept_source_route"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.default.accept_source_route' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10171"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10170"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10082">
                  <cis:evidence_item itemref="1046">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.default.accept_source_route"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.default.accept_source_route" dt="string"
                                         ev="net.ipv4.conf.default.accept_source_route"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1138"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.1.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1138"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1139"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.1.2_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1139"/>
      </check>
   </complex-check>
</rule-result>
Fail

3.2.2 Ensure ICMP redirects are not accepted

Description:

ICMP redirect messages are packets that convey routing information and tell your host (acting as a router) to send packets via an alternate path. It is a way of allowing an outside routing device to update your system routing tables. By setting net.ipv4.conf.all.accept_redirects to 0, the system will not accept any ICMP redirect messages, and therefore, won't allow outsiders to update the system's routing tables.

Attackers could use bogus ICMP redirect messages to maliciously alter the system routing tables and get them to send packets to incorrect networks and allow your system packets to be captured.

Set the following parameters in the /etc/sysctl.conf file:

net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.conf.all.accept_redirects=0
# sysctl -w net.ipv4.conf.default.accept_redirects=0
# sysctl -w net.ipv4.route.flush=1

All of the following tests or sub-groups must pass:
Ensure 'net.ipv4.conf.all.accept_redirects' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.all.accept_redirects
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.all.accept_redirects net.ipv4.conf.all.accept_redirects
the Kernel Parameter Value to be set to 0 1
Ensure 'net.ipv4.conf.all.accept_redirects' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.all.accept_redirects
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.all.accept_redirects net.ipv4.conf.all.accept_redirects
the Kernel Parameter Value to be set to 0 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.2.2_Ensure_ICMP_redirects_are_not_accepted"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.932-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.933-06:00"
                    start-time="2017-02-13T20:11:59.928-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.all.accept_redirects' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10172"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10171"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10083">
                  <cis:evidence_item itemref="1016">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.all.accept_redirects"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.all.accept_redirects" dt="string"
                                         ev="net.ipv4.conf.all.accept_redirects"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.all.accept_redirects' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10173"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10172"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10084">
                  <cis:evidence_item itemref="1016">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.all.accept_redirects"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.all.accept_redirects" dt="string"
                                         ev="net.ipv4.conf.all.accept_redirects"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1140"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.2.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1140"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1141"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.2.2_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1141"/>
      </check>
   </complex-check>
</rule-result>
Fail

3.2.3 Ensure secure ICMP redirects are not accepted

Description:

Secure ICMP redirects are the same as ICMP redirects, except they come from gateways listed on the default gateway list. It is assumed that these gateways are known to your system, and that they are likely to be secure.

It is still possible for even known gateways to be compromised. Setting net.ipv4.conf.all.secure_redirects to 0 protects the system from routing table updates by possibly compromised known gateways.

Set the following parameters in the /etc/sysctl.conf file:

net.ipv4.conf.all.secure_redirects = 0
net.ipv4.conf.default.secure_redirects = 0

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.conf.all.secure_redirects=0
# sysctl -w net.ipv4.conf.default.secure_redirects=0
# sysctl -w net.ipv4.route.flush=1

All of the following tests or sub-groups must pass:
Ensure 'net.ipv4.conf.all.secure_redirects' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.all.secure_redirects
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.all.secure_redirects net.ipv4.conf.all.secure_redirects
the Kernel Parameter Value to be set to 0 1
Ensure 'net.ipv4.conf.default.secure_redirects' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.default.secure_redirects
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.default.secure_redirects net.ipv4.conf.default.secure_redirects
the Kernel Parameter Value to be set to 0 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.2.3_Ensure_secure_ICMP_redirects_are_not_accepted"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.950-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.950-06:00"
                    start-time="2017-02-13T20:11:59.938-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.all.secure_redirects' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10174"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10173"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10085">
                  <cis:evidence_item itemref="1039">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.all.secure_redirects"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.all.secure_redirects" dt="string"
                                         ev="net.ipv4.conf.all.secure_redirects"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.default.secure_redirects' kernel parameter equals 0 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10175"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10174"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10086">
                  <cis:evidence_item itemref="1068">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.default.secure_redirects"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.default.secure_redirects" dt="string"
                                         ev="net.ipv4.conf.default.secure_redirects"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1142"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1142"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1143"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.3.2_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1143"/>
      </check>
   </complex-check>
</rule-result>
Fail

3.2.4 Ensure suspicious packets are logged

Description:

When enabled, this feature logs packets with un-routable source addresses to the kernel log.

Enabling this feature and logging these packets allows an administrator to investigate the possibility that an attacker is sending spoofed packets to their system.

Set the following parameters in the /etc/sysctl.conf file:

net.ipv4.conf.all.log_martians = 1
net.ipv4.conf.default.log_martians = 1

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.conf.all.log_martians=1
# sysctl -w net.ipv4.conf.default.log_martians=1
# sysctl -w net.ipv4.route.flush=1

All of the following tests or sub-groups must pass:
Ensure 'net.ipv4.conf.all.log_martians' kernel parameter equals 1 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.all.log_martians
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.all.log_martians net.ipv4.conf.all.log_martians
the Kernel Parameter Value to be set to 1 0
Ensure 'net.ipv4.conf.default.log_martians' kernel parameter equals 1 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.default.log_martians
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.default.log_martians net.ipv4.conf.default.log_martians
the Kernel Parameter Value to be set to 1 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.2.4_Ensure_suspicious_packets_are_logged"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.956-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.956-06:00"
                    start-time="2017-02-13T20:11:59.952-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.all.log_martians' kernel parameter equals 1 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10176"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10175"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10087">
                  <cis:evidence_item itemref="1031">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.all.log_martians"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.all.log_martians" dt="string"
                                         ev="net.ipv4.conf.all.log_martians"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="1" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.default.log_martians' kernel parameter equals 1 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10177"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10176"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10088">
                  <cis:evidence_item itemref="1060">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.default.log_martians"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.default.log_martians" dt="string"
                                         ev="net.ipv4.conf.default.log_martians"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="1" name="value" op="equals" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1144"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.4.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1144"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1145"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.4.2_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1145"/>
      </check>
   </complex-check>
</rule-result>
Pass

3.2.5 Ensure broadcast ICMP requests are ignored

Description:

Setting net.ipv4.icmp_echo_ignore_broadcasts to 1 will cause the system to ignore all ICMP echo and timestamp requests to broadcast and multicast addresses.

Accepting ICMP echo and timestamp requests with broadcast or multicast destinations for your network could be used to trick your host into starting (or participating) in a Smurf attack. A Smurf attack relies on an attacker sending large amounts of ICMP broadcast messages with a spoofed source address. All hosts receiving this message and responding would send echo-reply messages back to the spoofed address, which is probably not routable. If many hosts respond to the packets, the amount of traffic on the network could be significantly multiplied.

Set the following parameter in the /etc/sysctl.conf file:

net.ipv4.icmp_echo_ignore_broadcasts = 1

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1
# sysctl -w net.ipv4.route.flush=1

Ensure 'net.ipv4.icmp_echo_ignore_broadcasts' kernel parameter equals 1 (int) -- More
Check: All Must Pass
Kernel Parameter: net.ipv4.icmp_echo_ignore_broadcasts
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.icmp_echo_ignore_broadcasts net.ipv4.icmp_echo_ignore_broadcasts
the Kernel Parameter Value to be set to 1 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.2.5_Ensure_broadcast_ICMP_requests_are_ignored"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.965-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.965-06:00"
                    start-time="2017-02-13T20:11:59.962-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.icmp_echo_ignore_broadcasts' kernel parameter equals 1 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10178"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10177"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10089">
                  <cis:evidence_item itemref="1133">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.icmp_echo_ignore_broadcasts"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.icmp_echo_ignore_broadcasts" dt="string"
                                         ev="net.ipv4.icmp_echo_ignore_broadcasts"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="1" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1146"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.5.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1146"/>
      </check>
   </complex-check>
</rule-result>
Pass

3.2.6 Ensure bogus ICMP responses are ignored

Description:

Setting icmp_ignore_bogus_error_responses to 1 prevents the kernel from logging bogus responses (RFC-1122 non-compliant) from broadcast reframes, keeping file systems from filling up with useless log messages.

Some routers (and some attackers) will send responses that violate RFC-1122 and attempt to fill up a log file system with many useless error messages.

Set the following parameter in the /etc/sysctl.conf file:

net.ipv4.icmp_ignore_bogus_error_responses = 1

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1
# sysctl -w net.ipv4.route.flush=1

Ensure 'net.ipv4.icmp_ignore_bogus_error_responses' kernel parameter equals 1 (int) -- More
Check: All Must Pass
Kernel Parameter: net.ipv4.icmp_ignore_bogus_error_responses
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.icmp_ignore_bogus_error_responses net.ipv4.icmp_ignore_bogus_error_responses
the Kernel Parameter Value to be set to 1 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.2.6_Ensure_bogus_ICMP_responses_are_ignored"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.973-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.973-06:00"
                    start-time="2017-02-13T20:11:59.966-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.icmp_ignore_bogus_error_responses' kernel parameter equals 1 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10179"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10178"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10090">
                  <cis:evidence_item itemref="1135">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.icmp_ignore_bogus_error_responses"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.icmp_ignore_bogus_error_responses" dt="string"
                                         ev="net.ipv4.icmp_ignore_bogus_error_responses"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="1" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1147"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.6.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1147"/>
      </check>
   </complex-check>
</rule-result>
Pass

3.2.7 Ensure Reverse Path Filtering is enabled

Description:

Setting net.ipv4.conf.all.rp_filter and net.ipv4.conf.default.rp_filter to 1 forces the Linux kernel to utilize reverse path filtering on a received packet to determine if the packet was valid. Essentially, with reverse path filtering, if the return packet does not go out the same interface that the corresponding source packet came from, the packet is dropped (and logged if log_martians is set).

Setting these flags is a good way to deter attackers from sending your system bogus packets that cannot be responded to. One instance where this feature breaks down is if asymmetrical routing is employed. This would occur when using dynamic routing protocols (bgp, ospf, etc) on your system. If you are using asymmetrical routing on your system, you will not be able to enable this feature without breaking the routing.

Set the following parameters in the /etc/sysctl.conf file:

net.ipv4.conf.all.rp_filter = 1
net.ipv4.conf.default.rp_filter = 1

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.conf.all.rp_filter=1
# sysctl -w net.ipv4.conf.default.rp_filter=1
# sysctl -w net.ipv4.route.flush=1

All of the following tests or sub-groups must pass:
Ensure 'net.ipv4.conf.default.rp_filter' kernel parameter equals 1 (int) -- More
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.default.rp_filter
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.default.rp_filter net.ipv4.conf.default.rp_filter
the Kernel Parameter Value to be set to 1 1
Ensure 'net.ipv4.conf.all.rp_filter' kernel parameter equals 1 (int) -- More
Check: All Must Pass
Kernel Parameter: net.ipv4.conf.all.rp_filter
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.conf.all.rp_filter net.ipv4.conf.all.rp_filter
the Kernel Parameter Value to be set to 1 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.2.7_Ensure_Reverse_Path_Filtering_is_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.986-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.986-06:00"
                    start-time="2017-02-13T20:11:59.974-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.default.rp_filter' kernel parameter equals 1 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10181"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10180"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10092">
                  <cis:evidence_item itemref="1067">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.default.rp_filter"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.default.rp_filter" dt="string"
                                         ev="net.ipv4.conf.default.rp_filter"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="1" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.conf.all.rp_filter' kernel parameter equals 1 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10180"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10179"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10091">
                  <cis:evidence_item itemref="1038">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.conf.all.rp_filter"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.conf.all.rp_filter" dt="string" ev="net.ipv4.conf.all.rp_filter"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="1" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1148"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.7.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1148"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1149"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.7.2_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1149"/>
      </check>
   </complex-check>
</rule-result>
Pass

3.2.8 Ensure TCP SYN Cookies is enabled

Description:

When tcp_syncookies is set, the kernel will handle TCP SYN packets normally until the half-open connection queue is full, at which time, the SYN cookie functionality kicks in. SYN cookies work by not using the SYN queue at all. Instead, the kernel simply replies to the SYN with a SYN|ACK, but will include a specially crafted TCP sequence number that encodes the source and destination IP address and port number and the time the packet was sent. A legitimate connection would send the ACK packet of the three way handshake with the specially crafted sequence number. This allows the system to verify that it has received a valid response to a SYN cookie and allow the connection, even though there is no corresponding SYN in the queue.

Attackers use SYN flood attacks to perform a denial of service attacked on a system by sending many SYN packets without completing the three way handshake. This will quickly use up slots in the kernel's half-open connection queue and prevent legitimate connections from succeeding. SYN cookies allow the system to keep accepting valid connections, even if under a denial of service attack.

Set the following parameter in the /etc/sysctl.conf file:

net.ipv4.tcp_syncookies = 1

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv4.tcp_syncookies=1
# sysctl -w net.ipv4.route.flush=1

Ensure 'net.ipv4.tcp_syncookies' kernel parameter equals 1 (int) -- More
Check: All Must Pass
Kernel Parameter: net.ipv4.tcp_syncookies
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv4.tcp_syncookies net.ipv4.tcp_syncookies
the Kernel Parameter Value to be set to 1 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.2.8_Ensure_TCP_SYN_Cookies_is_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:11:59.997-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:11:59.997-06:00"
                    start-time="2017-02-13T20:11:59.994-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'net.ipv4.tcp_syncookies' kernel parameter equals 1 (int)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10182"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10181"
                               type="sysctl_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10093">
                  <cis:evidence_item itemref="1276">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="net.ipv4.tcp_syncookies"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="net.ipv4.tcp_syncookies" dt="string" ev="net.ipv4.tcp_syncookies"
                                         name="name"
                                         op="equals"
                                         result="true"/>
                     <cis:evidence_field cv="1" dt="int" ev="1" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1150"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.2.8.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1150"/>
      </check>
   </complex-check>
</rule-result>

3.3 IPv6

IPv6 is a networking protocol that supersedes IPv4. It has more routable addresses and has built in security. If IPv6 is to be used, follow this section of the benchmark to configure IPv6, otherwise disable IPv6.

Informational

3.3.1 Ensure IPv6 router advertisements are not accepted

Description:

This setting disables the system's ability to accept IPv6 router advertisements.

It is recommended that systems not accept router advertisements as they could be tricked into routing traffic to compromised machines. Setting hard routes within the system (usually a single default route to a trusted router) protects the system from bad routes.

Set the following parameters in the /etc/sysctl.conf file:

net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.default.accept_ra = 0

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv6.conf.all.accept_ra=0
# sysctl -w net.ipv6.conf.default.accept_ra=0
# sysctl -w net.ipv6.route.flush=1

Any of the following tests or sub-groups may pass:
Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*kernel\S+(\s+\S+)+\s+ipv6\.disable=1^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1 -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /boot/grub/grub.cfg does not exist
Pattern: ^\s*kernel\S+(\s+\S+)+\s+ipv6\.disable=1^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure 'net.ipv6.conf.default.accept_ra' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv6.conf.default.accept_ra
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv6.conf.default.accept_ra net.ipv6.conf.default.accept_ra
the Kernel Parameter Value to be set to 0 1
Ensure 'net.ipv6.conf.all.accept_ra' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv6.conf.all.accept_ra
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv6.conf.all.accept_ra net.ipv6.conf.all.accept_ra
the Kernel Parameter Value to be set to 0 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.3.1_Ensure_IPv6_router_advertisements_are_not_accepted"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:12:00.009-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.015-06:00"
                    start-time="2017-02-13T20:11:59.998-06:00">
         <cis:or>
            <cis:and>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure 'net.ipv6.conf.default.accept_ra' kernel parameter equals 0 (int)"
                                  negated="false"
                                  ns="unix"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10184"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10183"
                                  type="sysctl_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10095">
                     <cis:evidence_item itemref="1331">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="name" value="net.ipv6.conf.default.accept_ra"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="net.ipv6.conf.default.accept_ra" dt="string"
                                            ev="net.ipv6.conf.default.accept_ra"
                                            name="name"
                                            op="equals"
                                            result="true"/>
                        <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure 'net.ipv6.conf.all.accept_ra' kernel parameter equals 0 (int)"
                                  negated="false"
                                  ns="unix"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10183"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10182"
                                  type="sysctl_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10094">
                     <cis:evidence_item itemref="1294">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="name" value="net.ipv6.conf.all.accept_ra"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="net.ipv6.conf.all.accept_ra" dt="string" ev="net.ipv6.conf.all.accept_ra"
                                            name="name"
                                            op="equals"
                                            result="true"/>
                        <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*kernel\S+(\s+\S+)+\s+ipv6\.disable=1^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10185"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10184"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1685">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/boot/grub/grub.cfg"/>
                        <cis:evidence_item_pk_field name="path" value="/boot/grub"/>
                        <cis:evidence_item_pk_field name="filename" value="grub.cfg"/>
                        <cis:evidence_item_pk_field name="pattern"
                                                    value="^\s*kernel\S+(\s+\S+)+\s+ipv6\.disable=1^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <complex-check operator="AND">
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1151"
                          value-id="xccdf_org.cisecurity.benchmarks_value_3.3.1.1_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1151"/>
         </check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1152"
                          value-id="xccdf_org.cisecurity.benchmarks_value_3.3.1.2_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1152"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1153"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.3.1.3_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1153"/>
      </check>
   </complex-check>
</rule-result>
Informational

3.3.2 Ensure IPv6 redirects are not accepted

Description:

This setting prevents the system from accepting ICMP redirects. ICMP redirects tell the system about alternate routes for sending traffic.

It is recommended that systems not accept ICMP redirects as they could be tricked into routing traffic to compromised machines. Setting hard routes within the system (usually a single default route to a trusted router) protects the system from bad routes.

Set the following parameters in the /etc/sysctl.conf file:

net.ipv6.conf.all.accept_redirects = 0
net.ipv6.conf.default.accept_redirects = 0

Run the following commands to set the active kernel parameters:

# sysctl -w net.ipv6.conf.all.accept_redirects=0
# sysctl -w net.ipv6.conf.default.accept_redirects=0
# sysctl -w net.ipv6.route.flush=1

Any of the following tests or sub-groups may pass:
Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1 -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /boot/grub/grub.cfg does not exist
Pattern: ^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure 'net.ipv6.conf.all.accept_redirects' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv6.conf.all.accept_redirects
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv6.conf.all.accept_redirects net.ipv6.conf.all.accept_redirects
the Kernel Parameter Value to be set to 0 1
Ensure 'net.ipv6.conf.default.accept_redirects' kernel parameter equals 0 (int) -- Less
Check: All Must Pass
Kernel Parameter: net.ipv6.conf.default.accept_redirects
CIS-CAT Expected... CIS-CAT Collected...
the Kernel Parameter Name to be set to net.ipv6.conf.default.accept_redirects net.ipv6.conf.default.accept_redirects
the Kernel Parameter Value to be set to 0 1

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.3.2_Ensure_IPv6_redirects_are_not_accepted"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:12:00.047-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.048-06:00"
                    start-time="2017-02-13T20:12:00.016-06:00">
         <cis:or>
            <cis:and>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure 'net.ipv6.conf.all.accept_redirects' kernel parameter equals 0 (int)"
                                  negated="false"
                                  ns="unix"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10186"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10185"
                                  type="sysctl_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10096">
                     <cis:evidence_item itemref="1302">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="name" value="net.ipv6.conf.all.accept_redirects"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="net.ipv6.conf.all.accept_redirects" dt="string"
                                            ev="net.ipv6.conf.all.accept_redirects"
                                            name="name"
                                            op="equals"
                                            result="true"/>
                        <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure 'net.ipv6.conf.default.accept_redirects' kernel parameter equals 0 (int)"
                                  negated="false"
                                  ns="unix"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10187"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10186"
                                  type="sysctl_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10097">
                     <cis:evidence_item itemref="1339">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="name" value="net.ipv6.conf.default.accept_redirects"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="net.ipv6.conf.default.accept_redirects" dt="string"
                                            ev="net.ipv6.conf.default.accept_redirects"
                                            name="name"
                                            op="equals"
                                            result="true"/>
                        <cis:evidence_field cv="1" dt="int" ev="0" name="value" op="equals" result="false"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10188"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10187"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1686">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/boot/grub/grub.cfg"/>
                        <cis:evidence_item_pk_field name="path" value="/boot/grub"/>
                        <cis:evidence_item_pk_field name="filename" value="grub.cfg"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <complex-check operator="AND">
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1154"
                          value-id="xccdf_org.cisecurity.benchmarks_value_3.3.2.1_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1154"/>
         </check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1155"
                          value-id="xccdf_org.cisecurity.benchmarks_value_3.3.2.2_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1155"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1156"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.3.2.3_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1156"/>
      </check>
   </complex-check>
</rule-result>
Informational

3.3.3 Ensure IPv6 is disabled

Description:

Although IPv6 has many advantages over IPv4, few organizations have implemented IPv6.

If IPv6 is not to be used, it is recommended that it be disabled to reduce the attack surface of the system.

Edit /etc/default/grub and add ' ipv6.disable=1' to GRUB_CMDLINE_LINUX:

GRUB_CMDLINE_LINUX="ipv6.disable=1"

Run the following command to update the grub2 configuration:

# update-grub

Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1 -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /boot/grub/grub.cfg does not exist
Pattern: ^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.3.3_Ensure_IPv6_is_disabled"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:12:00.071-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.071-06:00"
                    start-time="2017-02-13T20:12:00.058-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /boot/grub/grub.cfg exists and matches pattern ^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10189"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10188"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1687">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/boot/grub/grub.cfg"/>
                        <cis:evidence_item_pk_field name="path" value="/boot/grub"/>
                        <cis:evidence_item_pk_field name="filename" value="grub.cfg"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*linux\S*(\s+\S+)+\s+ipv6\.disable=1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1157"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.3.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1157"/>
      </check>
   </complex-check>
</rule-result>

3.4 TCP Wrappers

Pass

3.4.1 Ensure TCP Wrappers is installed

Description:

TCP Wrappers provides a simple access list and standardized logging method for services capable of supporting it. In the past, services that were called from inetd and xinetd supported the use of tcp wrappers. As inetd and xinetd have been falling in disuse, any service that can support tcp wrappers will have the libwrap.so library attached to it.

TCP Wrappers provide a good simple access list mechanism to services that may not have that support built in. It is recommended that all services that can support TCP Wrappers, use it.

Run the following command to install TCP Wrappers:

apt-get install tcpd

Ensure package name equals 'tcpd' is installed -- More
CIS-CAT expected to collect at least 1 matching dpkg Package, and found 1 item.
Package Name: tcpd exists

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.4.1_Ensure_TCP_Wrappers_is_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.144-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.144-06:00"
                    start-time="2017-02-13T20:12:00.072-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure package name equals 'tcpd' is installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10190"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10189"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1688">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="tcpd"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1158"/>
      </check>
   </complex-check>
</rule-result>
Pass

3.4.2 Ensure /etc/hosts.allow is configured

Description:

The /etc/hosts.allow file specifies which IP addresses are permitted to connect to the host. It is intended to be used in conjunction with the /etc/hosts.deny file.

The /etc/hosts.allow file supports access control by IP and helps ensure that only authorized systems can connect to the system.

Run the following command to create /etc/hosts.allow:

# echo "ALL: <net>/<mask>, <net>/<mask>, ..." >/etc/hosts.allow

where each <net>/<mask> combination (for example, "192.168.1.0/255.255.255.0") represents one network block in use by your organization that requires access to this system.

Ensure at least one file named /etc/hosts.allow exists and unknown test -- More
CIS-CAT expected at least 1 matching file item to be collected, and found 1 item.
File: /etc/hosts.allow exists

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.4.2_Ensure_etchosts.allow_is_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.168-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.168-06:00"
                    start-time="2017-02-13T20:12:00.145-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/hosts.allow exists and unknown test"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10191"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10190"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1689">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/hosts.allow"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="hosts.allow"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1159"/>
      </check>
   </complex-check>
</rule-result>
Fail

3.4.3 Ensure /etc/hosts.deny is configured

Description:

The /etc/hosts.deny file specifies which IP addresses are not permitted to connect to the host. It is intended to be used in conjunction with the /etc/hosts.allow file.

The /etc/hosts.deny file serves as a failsafe so that any host not specified in /etc/hosts.allow is denied access to the system.

Run the following command to create /etc/hosts.deny:

# echo "ALL: ALL" >> /etc/hosts.deny

Ensure at least one file named /etc/hosts.deny exists and matches pattern ^ALL: ALL -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/hosts.deny does not exist
Pattern: ^ALL: ALL
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.4.3_Ensure_etchosts.deny_is_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.178-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.178-06:00"
                    start-time="2017-02-13T20:12:00.168-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/hosts.deny exists and matches pattern ^ALL: ALL"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10192"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10191"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1690">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/hosts.deny"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="hosts.deny"/>
                        <cis:evidence_item_pk_field name="pattern" value="^ALL: ALL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1160"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.4.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1160"/>
      </check>
   </complex-check>
</rule-result>
Pass

3.4.4 Ensure permissions on /etc/hosts.allow are configured

Description:

The /etc/hosts.allow file contains networking information that is used by many applications and therefore must be readable for these applications to operate.

It is critical to ensure that the /etc/hosts.allow file is protected from unauthorized write access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.

Run the following commands to set permissions on /etc/hosts.allow:

# chown root:root /etc/hosts.allow
# chmod 644 /etc/hosts.allow

Ensure at least one file named /etc/hosts.allow exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky -- More
File: /etc/hosts.allow
CIS-CAT Expected... CIS-CAT Collected...
the file's Owner Write to be set to true true
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Owner Read to be set to true true
the file's Other Read to be set to true true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to true true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.4.4_Ensure_permissions_on_etchosts.allow_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.214-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.214-06:00"
                    start-time="2017-02-13T20:12:00.179-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/hosts.allow exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10193"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10192"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10098">
                  <cis:evidence_item itemref="1691">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/hosts.allow"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="hosts.allow"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uwrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uread" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1161"/>
      </check>
   </complex-check>
</rule-result>
Pass

3.4.5 Ensure permissions on /etc/hosts.deny are 644

Description:

The /etc/hosts.deny file contains network information that is used by many system applications and therefore must be readable for these applications to operate.

It is critical to ensure that the /etc/hosts.deny file is protected from unauthorized write access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.

Run the following commands to set permissions on /etc/hosts.deny:

# chown root:root /etc/hosts.deny
# chmod 644 /etc/hosts.deny

Ensure at least one file named /etc/hosts.deny exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky -- More
File: /etc/hosts.deny
CIS-CAT Expected... CIS-CAT Collected...
the file's Owner Write to be set to true true
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Owner Read to be set to true true
the file's Other Read to be set to true true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to true true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.4.5_Ensure_permissions_on_etchosts.deny_are_644"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.248-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.248-06:00"
                    start-time="2017-02-13T20:12:00.215-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/hosts.deny exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10194"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10193"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10099">
                  <cis:evidence_item itemref="1692">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/hosts.deny"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="hosts.deny"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uwrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uread" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1162"/>
      </check>
   </complex-check>
</rule-result>

3.5 Uncommon Network Protocols

The Linux kernel modules support several network protocols that are not commonly used. If these protocols are not needed, it is recommended that they be disabled in the kernel.

Note: This should not be considered a comprehensive list of uncommon network protocols, you may wish to consider additions to those listed here for your environment.

Informational

3.5.1 Ensure DCCP is disabled

Description:

The Datagram Congestion Control Protocol (DCCP) is a transport layer protocol that supports streaming media and telephony. DCCP provides a way to gain access to congestion control, without having to do it at the application layer, but does not provide in-sequence delivery.

If the protocol is not required, it is recommended that the drivers not be installed
to reduce the potential attack surface.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install dccp /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module dccp is not loadable -- Less
Check: At Least One Must Pass
Command: modprobe -n -v dccp
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/net/dccp/dccp.ko
Ensure kernel module dccp is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^dccp\s+ Module Size Used by
the Std. Output matches the regular expression ^dccp\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^dccp\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^dccp\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^dccp\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^dccp\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^dccp\s+ coretemp 16384 0
the Std. Output matches the regular expression ^dccp\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^dccp\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^dccp\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^dccp\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^dccp\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^dccp\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^dccp\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^dccp\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^dccp\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^dccp\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^dccp\s+ joydev 20480 0
the Std. Output matches the regular expression ^dccp\s+ input_leds 16384 0
the Std. Output matches the regular expression ^dccp\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^dccp\s+ shpchp 36864 0
the Std. Output matches the regular expression ^dccp\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^dccp\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^dccp\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^dccp\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^dccp\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^dccp\s+ ppdev 20480 0
the Std. Output matches the regular expression ^dccp\s+ lp 20480 0
the Std. Output matches the regular expression ^dccp\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^dccp\s+ autofs4 40960 2
the Std. Output matches the regular expression ^dccp\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^dccp\s+ psmouse 131072 0
the Std. Output matches the regular expression ^dccp\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^dccp\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^dccp\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^dccp\s+ mptspi 24576 1
the Std. Output matches the regular expression ^dccp\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^dccp\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^dccp\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^dccp\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^dccp\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^dccp\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^dccp\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^dccp\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^dccp\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^dccp\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.5.1_Ensure_DCCP_is_disabled"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:12:00.291-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.291-06:00"
                    start-time="2017-02-13T20:12:00.249-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module dccp is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10195"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10194"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10100">
                  <cis:evidence_item entity_check="at least one" itemref="1693">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v dccp"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/net/dccp/dccp.ko " dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module dccp is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10196"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10195"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10101">
                  <cis:evidence_item entity_check="at least one" itemref="1694">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^dccp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1163"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1164"/>
      </check>
   </complex-check>
</rule-result>
Informational

3.5.2 Ensure SCTP is disabled

Description:

The Stream Control Transmission Protocol (SCTP) is a transport layer protocol used to support message oriented communication, with several streams of messages in one connection. It serves a similar function as TCP and UDP, incorporating features of both. It is message-oriented like UDP, and ensures reliable in-sequence transport of messages with congestion control like TCP.

If the protocol is not being used, it is recommended that kernel module not be loaded, disabling the service to reduce the potential attack surface.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install sctp /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module sctp is not loadable -- Less
Check: At Least One Must Pass
Command: modprobe -n -v sctp
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/lib/libcrc32c.ko
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/net/sctp/sctp.ko
Ensure kernel module sctp is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^sctp\s+ Module Size Used by
the Std. Output matches the regular expression ^sctp\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^sctp\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^sctp\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^sctp\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^sctp\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^sctp\s+ coretemp 16384 0
the Std. Output matches the regular expression ^sctp\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^sctp\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^sctp\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^sctp\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^sctp\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^sctp\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^sctp\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^sctp\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^sctp\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^sctp\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^sctp\s+ joydev 20480 0
the Std. Output matches the regular expression ^sctp\s+ input_leds 16384 0
the Std. Output matches the regular expression ^sctp\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^sctp\s+ shpchp 36864 0
the Std. Output matches the regular expression ^sctp\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^sctp\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^sctp\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^sctp\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^sctp\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^sctp\s+ ppdev 20480 0
the Std. Output matches the regular expression ^sctp\s+ lp 20480 0
the Std. Output matches the regular expression ^sctp\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^sctp\s+ autofs4 40960 2
the Std. Output matches the regular expression ^sctp\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^sctp\s+ psmouse 131072 0
the Std. Output matches the regular expression ^sctp\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^sctp\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^sctp\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^sctp\s+ mptspi 24576 1
the Std. Output matches the regular expression ^sctp\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^sctp\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^sctp\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^sctp\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^sctp\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^sctp\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^sctp\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^sctp\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^sctp\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^sctp\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.5.2_Ensure_SCTP_is_disabled"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:12:00.526-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.526-06:00"
                    start-time="2017-02-13T20:12:00.293-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module sctp is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10197"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10196"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10102">
                  <cis:evidence_item entity_check="at least one" itemref="1695">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v sctp"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/lib/libcrc32c.ko " dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/net/sctp/sctp.ko " dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module sctp is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10198"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10197"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10103">
                  <cis:evidence_item entity_check="at least one" itemref="1696">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^sctp\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1165"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1166"/>
      </check>
   </complex-check>
</rule-result>
Informational

3.5.3 Ensure RDS is disabled

Description:

The Reliable Datagram Sockets (RDS) protocol is a transport layer protocol designed to provide low-latency, high-bandwidth communications between cluster nodes. It was developed by the Oracle Corporation.

If the protocol is not being used, it is recommended that kernel module not be loaded, disabling the service to reduce the potential attack surface.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install rds /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module rds is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^rds\s+ Module Size Used by
the Std. Output matches the regular expression ^rds\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^rds\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^rds\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^rds\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^rds\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^rds\s+ coretemp 16384 0
the Std. Output matches the regular expression ^rds\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^rds\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^rds\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^rds\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^rds\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^rds\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^rds\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^rds\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^rds\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^rds\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^rds\s+ joydev 20480 0
the Std. Output matches the regular expression ^rds\s+ input_leds 16384 0
the Std. Output matches the regular expression ^rds\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^rds\s+ shpchp 36864 0
the Std. Output matches the regular expression ^rds\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^rds\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^rds\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^rds\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^rds\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^rds\s+ ppdev 20480 0
the Std. Output matches the regular expression ^rds\s+ lp 20480 0
the Std. Output matches the regular expression ^rds\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^rds\s+ autofs4 40960 2
the Std. Output matches the regular expression ^rds\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^rds\s+ psmouse 131072 0
the Std. Output matches the regular expression ^rds\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^rds\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^rds\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^rds\s+ mptspi 24576 1
the Std. Output matches the regular expression ^rds\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^rds\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^rds\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^rds\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^rds\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^rds\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^rds\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^rds\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^rds\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^rds\s+ fjes 28672 0
Ensure kernel module rds is not loadable -- Less
Check: At Least One Must Pass
Command: modprobe -n -v rds
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/net/rds/rds.ko

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.5.3_Ensure_RDS_is_disabled"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:12:00.573-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.573-06:00"
                    start-time="2017-02-13T20:12:00.528-06:00">
         <cis:and>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module rds is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10200"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10199"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10105">
                  <cis:evidence_item entity_check="at least one" itemref="1697">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^rds\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module rds is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10199"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10198"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10104">
                  <cis:evidence_item entity_check="at least one" itemref="1698">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v rds"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/net/rds/rds.ko " dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1167"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1168"/>
      </check>
   </complex-check>
</rule-result>
Informational

3.5.4 Ensure TIPC is disabled

Description:

The Transparent Inter-Process Communication (TIPC) protocol is designed to provide communication between cluster nodes.

If the protocol is not being used, it is recommended that kernel module not be loaded, disabling the service to reduce the potential attack surface.

Edit or create the file /etc/modprobe.d/CIS.conf and add the following line:

install tipc /bin/true

All of the following tests or sub-groups must pass:
Ensure kernel module tipc is not loadable -- Less
Check: At Least One Must Pass
Command: modprobe -n -v tipc
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/net/ipv4/udp_tunnel.ko
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/net/ipv6/ip6_udp_tunnel.ko
the Std. Output matches the regular expression ^install\s+/bin/true\s*$ insmod /lib/modules/4.4.0-62-generic/kernel/net/tipc/tipc.ko
Ensure kernel module tipc is not loaded -- More
Check: None May Pass
Command: lsmod
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^tipc\s+ Module Size Used by
the Std. Output matches the regular expression ^tipc\s+ iptable_filter 16384 0
the Std. Output matches the regular expression ^tipc\s+ ip_tables 24576 1 iptable_filter
the Std. Output matches the regular expression ^tipc\s+ x_tables 36864 2 ip_tables,iptable_filter
the Std. Output matches the regular expression ^tipc\s+ binfmt_misc 20480 1
the Std. Output matches the regular expression ^tipc\s+ vmw_balloon 20480 0
the Std. Output matches the regular expression ^tipc\s+ coretemp 16384 0
the Std. Output matches the regular expression ^tipc\s+ crct10dif_pclmul 16384 0
the Std. Output matches the regular expression ^tipc\s+ crc32_pclmul 16384 0
the Std. Output matches the regular expression ^tipc\s+ ghash_clmulni_intel 16384 0
the Std. Output matches the regular expression ^tipc\s+ aesni_intel 167936 0
the Std. Output matches the regular expression ^tipc\s+ aes_x86_64 20480 1 aesni_intel
the Std. Output matches the regular expression ^tipc\s+ lrw 16384 1 aesni_intel
the Std. Output matches the regular expression ^tipc\s+ gf128mul 16384 1 lrw
the Std. Output matches the regular expression ^tipc\s+ glue_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^tipc\s+ ablk_helper 16384 1 aesni_intel
the Std. Output matches the regular expression ^tipc\s+ cryptd 20480 3 ghash_clmulni_intel,aesni_intel,ablk_helper
the Std. Output matches the regular expression ^tipc\s+ joydev 20480 0
the Std. Output matches the regular expression ^tipc\s+ input_leds 16384 0
the Std. Output matches the regular expression ^tipc\s+ serio_raw 16384 0
the Std. Output matches the regular expression ^tipc\s+ shpchp 36864 0
the Std. Output matches the regular expression ^tipc\s+ i2c_piix4 24576 0
the Std. Output matches the regular expression ^tipc\s+ vmw_vmci 65536 1 vmw_balloon
the Std. Output matches the regular expression ^tipc\s+ 8250_fintek 16384 0
the Std. Output matches the regular expression ^tipc\s+ mac_hid 16384 0
the Std. Output matches the regular expression ^tipc\s+ parport_pc 32768 0
the Std. Output matches the regular expression ^tipc\s+ ppdev 20480 0
the Std. Output matches the regular expression ^tipc\s+ lp 20480 0
the Std. Output matches the regular expression ^tipc\s+ parport 49152 3 lp,ppdev,parport_pc
the Std. Output matches the regular expression ^tipc\s+ autofs4 40960 2
the Std. Output matches the regular expression ^tipc\s+ vmwgfx 237568 2
the Std. Output matches the regular expression ^tipc\s+ psmouse 131072 0
the Std. Output matches the regular expression ^tipc\s+ ttm 94208 1 vmwgfx
the Std. Output matches the regular expression ^tipc\s+ drm_kms_helper 155648 1 vmwgfx
the Std. Output matches the regular expression ^tipc\s+ syscopyarea 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^tipc\s+ mptspi 24576 1
the Std. Output matches the regular expression ^tipc\s+ mptscsih 40960 1 mptspi
the Std. Output matches the regular expression ^tipc\s+ vmxnet3 57344 0
the Std. Output matches the regular expression ^tipc\s+ sysfillrect 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^tipc\s+ sysimgblt 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^tipc\s+ fb_sys_fops 16384 1 drm_kms_helper
the Std. Output matches the regular expression ^tipc\s+ mptbase 102400 2 mptspi,mptscsih
the Std. Output matches the regular expression ^tipc\s+ scsi_transport_spi 32768 1 mptspi
the Std. Output matches the regular expression ^tipc\s+ drm 364544 5 ttm,drm_kms_helper,vmwgfx
the Std. Output matches the regular expression ^tipc\s+ pata_acpi 16384 0
the Std. Output matches the regular expression ^tipc\s+ fjes 28672 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.5.4_Ensure_TIPC_is_disabled"
             role="unscored"
             severity="unknown"
             time="2017-02-13T20:12:00.623-06:00"
             version="1"
             weight="0.0">
   <result>informational</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.624-06:00"
                    start-time="2017-02-13T20:12:00.576-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure kernel module tipc is not loadable"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10201"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10200"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10106">
                  <cis:evidence_item entity_check="at least one" itemref="1699">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="modprobe -n -v tipc"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/net/ipv4/udp_tunnel.ko "
                                         dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/net/ipv6/ip6_udp_tunnel.ko "
                                         dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="insmod /lib/modules/4.4.0-62-generic/kernel/net/tipc/tipc.ko " dt="string"
                                         ev="^install\s+/bin/true\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Ensure kernel module tipc is not loaded"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10202"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10201"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10107">
                  <cis:evidence_item entity_check="at least one" itemref="1700">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="lsmod"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Module                  Size  Used by" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="iptable_filter         16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ip_tables              24576  1 iptable_filter" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="x_tables               36864  2 ip_tables,iptable_filter" dt="string"
                                         ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="binfmt_misc            20480  1" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_balloon            20480  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="coretemp               16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crct10dif_pclmul       16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="crc32_pclmul           16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ghash_clmulni_intel    16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aesni_intel           167936  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="aes_x86_64             20480  1 aesni_intel" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lrw                    16384  1 aesni_intel" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="gf128mul               16384  1 lrw" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="glue_helper            16384  1 aesni_intel" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ablk_helper            16384  1 aesni_intel" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper"
                                         dt="string"
                                         ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="joydev                 20480  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="input_leds             16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="serio_raw              16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="shpchp                 36864  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="i2c_piix4              24576  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmw_vmci               65536  1 vmw_balloon" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="8250_fintek            16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mac_hid                16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport_pc             32768  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ppdev                  20480  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="lp                     20480  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="parport                49152  3 lp,ppdev,parport_pc" dt="string"
                                         ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="autofs4                40960  2" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmwgfx                237568  2" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="psmouse               131072  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="ttm                    94208  1 vmwgfx" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm_kms_helper        155648  1 vmwgfx" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="syscopyarea            16384  1 drm_kms_helper" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptspi                 24576  1" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptscsih               40960  1 mptspi" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="vmxnet3                57344  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysfillrect            16384  1 drm_kms_helper" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="sysimgblt              16384  1 drm_kms_helper" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fb_sys_fops            16384  1 drm_kms_helper" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="mptbase               102400  2 mptspi,mptscsih" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="scsi_transport_spi     32768  1 mptspi" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="drm                   364544  5 ttm,drm_kms_helper,vmwgfx" dt="string"
                                         ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="pata_acpi              16384  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="fjes                   28672  0" dt="string" ev="^tipc\s+"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1169"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1170"/>
      </check>
   </complex-check>
</rule-result>

3.6 Firewall Configuration

IPtables is an application that allows a system administrator to configure the IPv4 tables, chains and rules provided by the Linux kernel firewall. While several methods of configuration exist this section is intended only to ensure the resulting IPtables rules are in place, not how they are configured. If IPv6 is in use in your environment, similar settings should be applied to the IP6tables as well.

Note: This section broadly assumes starting with an empty IPtables firewall ruleset (established by flushing the rules with iptables -F). Remediation steps included only affect the live system, you will also need to configure your default firewall configuration to apply on boot. Configuration of a live systems firewall directly over a remote connection will often result in being locked out. It is advised to have a known good firewall configuration set to run on boot and to configure an entire firewall structure in a script that is then run and tested before saving to boot. The following script will implement the firewall rules of this section and open port 22(ssh) from anywhere:

#!/bin/bash

# Flush IPtables rules
iptables -F

# Ensure default deny firewall policy
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

# Ensure loopback traffic is configured
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
iptables -A INPUT -s 127.0.0.0/8 -j DROP

# Ensure outbound and established connections are configured
iptables -A OUTPUT -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p udp -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p icmp -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -p udp -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -p icmp -m state --state ESTABLISHED -j ACCEPT

# Open inbound ssh(tcp port 22) connections
iptables -A INPUT -p tcp --dport 22 -m state --state NEW -j ACCEPT

Ubuntu is distributed with the UFW service which acts as a front end to iptables. The default configuration of UFW implements a configuration very similar to that recommended here. IPTables configuration allows for far more complex implementations than those listed here which may satisfy the intent of these recommendations without strictly matching the examples provided. Note: UFW may interfere with sysctl settings.

Pass

3.6.1 Ensure iptables is installed

Description:

iptables allows configuration of the IPv4 tables in the linux kernel and the rules stored within them. Most firewall configuration utilities operate as a front end to iptables.

iptables is required for firewall management and configuration.

Run the following command to install iptables:

# apt-get install iptables

Ensure package name equals 'iptables' is installed -- More
CIS-CAT expected to collect at least 1 matching dpkg Package, and found 1 item.
Package Name: iptables exists

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.6.1_Ensure_iptables_is_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.711-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.712-06:00"
                    start-time="2017-02-13T20:12:00.634-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure package name equals 'iptables' is installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10203"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10202"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1701">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="iptables"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1171"/>
      </check>
   </complex-check>
</rule-result>
Fail

3.6.2 Ensure default deny firewall policy

Description:

A default deny all policy on connections ensures that any unconfigured network usage will be rejected.

With a default accept policy the firewall will accept any packet that is not configured to be denied. It is easier to white list acceptable usage than to black list unacceptable usage.

Run the following commands to implement a default DROP policy:

# iptables -P INPUT DROP
# iptables -P OUTPUT DROP
# iptables -P FORWARD DROP

All of the following tests or sub-groups must pass:
Ensure 'iptables -L' output pattern match '^Chain OUTPUT \(policy (DROP|REJECT)\)$' (string) -- Less
Check: At Least One Must Pass
Command: iptables -L
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^Chain OUTPUT \(policy (DROP|REJECT)\)$ Chain INPUT (policy ACCEPT)
the Std. Output matches the regular expression ^Chain OUTPUT \(policy (DROP|REJECT)\)$ target prot opt source destination
the Std. Output matches the regular expression ^Chain OUTPUT \(policy (DROP|REJECT)\)$ Chain FORWARD (policy ACCEPT)
the Std. Output matches the regular expression ^Chain OUTPUT \(policy (DROP|REJECT)\)$ Chain OUTPUT (policy ACCEPT)
All of the following tests or sub-groups must pass:
Ensure 'iptables -L' output pattern match '^Chain INPUT \(policy (DROP|REJECT)\)$' (string) -- Less
Check: At Least One Must Pass
Command: iptables -L
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^Chain INPUT \(policy (DROP|REJECT)\)$ Chain INPUT (policy ACCEPT)
the Std. Output matches the regular expression ^Chain INPUT \(policy (DROP|REJECT)\)$ target prot opt source destination
the Std. Output matches the regular expression ^Chain INPUT \(policy (DROP|REJECT)\)$ Chain FORWARD (policy ACCEPT)
the Std. Output matches the regular expression ^Chain INPUT \(policy (DROP|REJECT)\)$ Chain OUTPUT (policy ACCEPT)
Ensure 'iptables -L' output pattern match '^Chain FORWARD \(policy (DROP|REJECT)\)$' (string) -- Less
Check: At Least One Must Pass
Command: iptables -L
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^Chain FORWARD \(policy (DROP|REJECT)\)$ Chain INPUT (policy ACCEPT)
the Std. Output matches the regular expression ^Chain FORWARD \(policy (DROP|REJECT)\)$ target prot opt source destination
the Std. Output matches the regular expression ^Chain FORWARD \(policy (DROP|REJECT)\)$ Chain FORWARD (policy ACCEPT)
the Std. Output matches the regular expression ^Chain FORWARD \(policy (DROP|REJECT)\)$ Chain OUTPUT (policy ACCEPT)

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.6.2_Ensure_default_deny_firewall_policy"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.757-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.757-06:00"
                    start-time="2017-02-13T20:12:00.715-06:00">
         <cis:and>
            <cis:and>
               <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                                  comment="Ensure 'iptables -L' output pattern match '^Chain INPUT \(policy (DROP|REJECT)\)$' (string)"
                                  negated="false"
                                  ns="cmd"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10204"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10203"
                                  type="shellcommand_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10108">
                     <cis:evidence_item entity_check="at least one" itemref="1702">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="command" value="iptables -L"/>
                           <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="Chain INPUT (policy ACCEPT)" dt="string"
                                            ev="^Chain INPUT \(policy (DROP|REJECT)\)$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                        <cis:evidence_field cv="target     prot opt source               destination         " dt="string"
                                            ev="^Chain INPUT \(policy (DROP|REJECT)\)$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                        <cis:evidence_field cv="Chain FORWARD (policy ACCEPT)" dt="string"
                                            ev="^Chain INPUT \(policy (DROP|REJECT)\)$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                        <cis:evidence_field cv="Chain OUTPUT (policy ACCEPT)" dt="string"
                                            ev="^Chain INPUT \(policy (DROP|REJECT)\)$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
               <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                                  comment="Ensure 'iptables -L' output pattern match '^Chain FORWARD \(policy (DROP|REJECT)\)$' (string)"
                                  negated="false"
                                  ns="cmd"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10205"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10204"
                                  type="shellcommand_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10109">
                     <cis:evidence_item entity_check="at least one" itemref="1703">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="command" value="iptables -L"/>
                           <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="Chain INPUT (policy ACCEPT)" dt="string"
                                            ev="^Chain FORWARD \(policy (DROP|REJECT)\)$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                        <cis:evidence_field cv="target     prot opt source               destination         " dt="string"
                                            ev="^Chain FORWARD \(policy (DROP|REJECT)\)$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                        <cis:evidence_field cv="Chain FORWARD (policy ACCEPT)" dt="string"
                                            ev="^Chain FORWARD \(policy (DROP|REJECT)\)$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                        <cis:evidence_field cv="Chain OUTPUT (policy ACCEPT)" dt="string"
                                            ev="^Chain FORWARD \(policy (DROP|REJECT)\)$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure 'iptables -L' output pattern match '^Chain OUTPUT \(policy (DROP|REJECT)\)$' (string)"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10206"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10205"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10110">
                  <cis:evidence_item entity_check="at least one" itemref="1704">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="iptables -L"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Chain INPUT (policy ACCEPT)" dt="string"
                                         ev="^Chain OUTPUT \(policy (DROP|REJECT)\)$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="target     prot opt source               destination         " dt="string"
                                         ev="^Chain OUTPUT \(policy (DROP|REJECT)\)$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="Chain FORWARD (policy ACCEPT)" dt="string"
                                         ev="^Chain OUTPUT \(policy (DROP|REJECT)\)$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="Chain OUTPUT (policy ACCEPT)" dt="string"
                                         ev="^Chain OUTPUT \(policy (DROP|REJECT)\)$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <complex-check operator="AND">
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1172"
                          value-id="xccdf_org.cisecurity.benchmarks_value_3.6.2.1_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1172"/>
         </check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1173"
                          value-id="xccdf_org.cisecurity.benchmarks_value_3.6.2.2_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1173"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1174"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.6.2.3_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1174"/>
      </check>
   </complex-check>
</rule-result>
Fail

3.6.3 Ensure loopback traffic is configured

Description:

Configure the loopback interface to accept traffic. Configure all other interfaces to deny traffic to the loopback network (127.0.0.0/8).

Loopback traffic is generated between processes on machine and is typically critical to operation of the system. The loopback interface is the only place that loopback network (127.0.0.0/8) traffic should be seen, all other interfaces should ignore traffic on this network as an anti-spoofing measure.

Run the following commands to implement the loopback rules:

# iptables -A INPUT -i lo -j ACCEPT
# iptables -A OUTPUT -o lo -j ACCEPT
# iptables -A INPUT -s 127.0.0.0/8 -j DROP

All of the following tests or sub-groups must pass:
Ensure 'iptables -L OUTPUT -v -n' output pattern match '^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+\*\s+lo\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$' (string) -- Less
Check: At Least One Must Pass
Command: iptables -L OUTPUT -v -n
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+\*\s+lo\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$ Chain OUTPUT (policy ACCEPT 2813 packets, 700K bytes)
the Std. Output matches the regular expression ^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+\*\s+lo\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$ pkts bytes target prot opt in out source destination
All of the following tests or sub-groups must pass:
Ensure 'iptables -L INPUT -v -n' output pattern match '^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+lo\s+\*\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$' (string) -- Less
Check: At Least One Must Pass
Command: iptables -L INPUT -v -n
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+lo\s+\*\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$ Chain INPUT (policy ACCEPT 6780 packets, 6914K bytes)
the Std. Output matches the regular expression ^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+lo\s+\*\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$ pkts bytes target prot opt in out source destination
Ensure 'iptables -L INPUT -v -n' output pattern match '^\s*\S+\s+\S+\s+DROP\s+all\s+--\s+\*\s+\*\s+127\.0\.0\.0\/8\s+0\.0\.0\.0\/0\s*$' (string) -- Less
Check: At Least One Must Pass
Command: iptables -L INPUT -v -n
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression ^\s*\S+\s+\S+\s+DROP\s+all\s+--\s+\*\s+\*\s+127\.0\.0\.0\/8\s+0\.0\.0\.0\/0\s*$ Chain INPUT (policy ACCEPT 6780 packets, 6914K bytes)
the Std. Output matches the regular expression ^\s*\S+\s+\S+\s+DROP\s+all\s+--\s+\*\s+\*\s+127\.0\.0\.0\/8\s+0\.0\.0\.0\/0\s*$ pkts bytes target prot opt in out source destination

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.6.3_Ensure_loopback_traffic_is_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.801-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.801-06:00"
                    start-time="2017-02-13T20:12:00.759-06:00">
         <cis:and>
            <cis:and>
               <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                                  comment="Ensure 'iptables -L INPUT -v -n' output pattern match '^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+lo\s+\*\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$' (string)"
                                  negated="false"
                                  ns="cmd"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10207"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10206"
                                  type="shellcommand_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10111">
                     <cis:evidence_item entity_check="at least one" itemref="1705">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="command" value="iptables -L INPUT -v -n"/>
                           <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="Chain INPUT (policy ACCEPT 6780 packets, 6914K bytes)" dt="string"
                                            ev="^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+lo\s+\*\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                        <cis:evidence_field cv=" pkts bytes target     prot opt in     out     source               destination         "
                                            dt="string"
                                            ev="^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+lo\s+\*\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
               <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                                  comment="Ensure 'iptables -L INPUT -v -n' output pattern match '^\s*\S+\s+\S+\s+DROP\s+all\s+--\s+\*\s+\*\s+127\.0\.0\.0\/8\s+0\.0\.0\.0\/0\s*$' (string)"
                                  negated="false"
                                  ns="cmd"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10208"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10207"
                                  type="shellcommand_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10112">
                     <cis:evidence_item entity_check="at least one" itemref="1706">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="command" value="iptables -L INPUT -v -n"/>
                           <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="Chain INPUT (policy ACCEPT 6780 packets, 6914K bytes)" dt="string"
                                            ev="^\s*\S+\s+\S+\s+DROP\s+all\s+--\s+\*\s+\*\s+127\.0\.0\.0\/8\s+0\.0\.0\.0\/0\s*$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                        <cis:evidence_field cv=" pkts bytes target     prot opt in     out     source               destination         "
                                            dt="string"
                                            ev="^\s*\S+\s+\S+\s+DROP\s+all\s+--\s+\*\s+\*\s+127\.0\.0\.0\/8\s+0\.0\.0\.0\/0\s*$"
                                            name="stdout_line"
                                            op="pattern match"
                                            result="false"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure 'iptables -L OUTPUT -v -n' output pattern match '^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+\*\s+lo\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$' (string)"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10209"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10208"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10113">
                  <cis:evidence_item entity_check="at least one" itemref="1707">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="iptables -L OUTPUT -v -n"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="Chain OUTPUT (policy ACCEPT 2813 packets, 700K bytes)" dt="string"
                                         ev="^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+\*\s+lo\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv=" pkts bytes target     prot opt in     out     source               destination         "
                                         dt="string"
                                         ev="^\s*\S+\s+\S+\s+ACCEPT\s+all\s+--\s+\*\s+lo\s+0\.0\.0\.0\/0\s+0\.0\.0\.0\/0\s*$"
                                         name="stdout_line"
                                         op="pattern match"
                                         result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <complex-check operator="AND">
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1175"
                          value-id="xccdf_org.cisecurity.benchmarks_value_3.6.3.1_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1175"/>
         </check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1176"
                          value-id="xccdf_org.cisecurity.benchmarks_value_3.6.3.2_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1176"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1177"
                       value-id="xccdf_org.cisecurity.benchmarks_value_3.6.3.3_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1177"/>
      </check>
   </complex-check>
</rule-result>
Fail

3.6.5 Ensure firewall rules exist for all open ports

Description:

Any ports that have been opened on non-loopback addresses need firewall rules to govern traffic.

Without a firewall rule configured for open ports default firewall policy will drop all packets to these ports.

For each port identified in the audit which does not have a firewall rule establish a proper rule for accepting inbound connections:

# iptables -A INPUT -p <protocol> --dport <port> -m state --state NEW -j ACCEPT

All of the following tests or sub-groups must pass:
Linux Custom Object "Firewall Rule Exists For All Open Ports" -- Less
Check: All Must Pass
Command: iptables -L INPUT -v -n
Line Selection: \s+dpt:68\s+state\s+NEW\s*$
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+
Command: iptables -L INPUT -v -n
Line Selection: \s+dpt:32910\s+state\s+NEW\s*$
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+
Command: iptables -L INPUT -v -n
Line Selection: \s+dpt:5353\s+state\s+NEW\s*$
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+
Command: iptables -L INPUT -v -n
Line Selection: \s+dpt:631\s+state\s+NEW\s*$
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+
Command: iptables -L INPUT -v -n
Line Selection: \s+dpt:5353\s+state\s+NEW\s*$
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+
Command: iptables -L INPUT -v -n
Line Selection: \s+dpt:35389\s+state\s+NEW\s*$
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+
Linux Custom Object "Firewall Rule Exists For All Open Ports" -- Less
CIS-CAT did not expect to collect any matching items, and found 6 items.
Command: All, Line Selection: All exists
Command: All, Line Selection: All exists
Command: All, Line Selection: All exists
Command: All, Line Selection: All exists
Command: All, Line Selection: All exists
Command: All, Line Selection: All exists

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_3.6.5_Ensure_firewall_rules_exist_for_all_open_ports"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.862-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.862-06:00"
                    start-time="2017-02-13T20:12:00.802-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Linux Custom Object &#34;Firewall Rule Exists For All Open Ports&#34;"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10210"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10209"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10114">
                  <cis:evidence_item entity_check="at least one" itemref="1709">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="iptables -L INPUT -v -n"/>
                        <cis:evidence_item_pk_field name="line_selection" value="\s+dpt:68\s+state\s+NEW\s*$"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item entity_check="at least one" itemref="1710">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="iptables -L INPUT -v -n"/>
                        <cis:evidence_item_pk_field name="line_selection" value="\s+dpt:32910\s+state\s+NEW\s*$"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item entity_check="at least one" itemref="1711">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="iptables -L INPUT -v -n"/>
                        <cis:evidence_item_pk_field name="line_selection" value="\s+dpt:5353\s+state\s+NEW\s*$"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item entity_check="at least one" itemref="1712">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="iptables -L INPUT -v -n"/>
                        <cis:evidence_item_pk_field name="line_selection" value="\s+dpt:631\s+state\s+NEW\s*$"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item entity_check="at least one" itemref="1713">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="iptables -L INPUT -v -n"/>
                        <cis:evidence_item_pk_field name="line_selection" value="\s+dpt:5353\s+state\s+NEW\s*$"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item entity_check="at least one" itemref="1714">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="iptables -L INPUT -v -n"/>
                        <cis:evidence_item_pk_field name="line_selection" value="\s+dpt:35389\s+state\s+NEW\s*$"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="at least one" check_existence="none_exist"
                               comment="Linux Custom Object &#34;Firewall Rule Exists For All Open Ports&#34;"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10211"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10210"
                               type="shellcommand_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1644">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="protocol" value="udp"/>
                        <cis:evidence_item_pk_field name="local_address" value="0.0.0.0"/>
                        <cis:evidence_item_pk_field name="local_port" value="68"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1645">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="protocol" value="udp"/>
                        <cis:evidence_item_pk_field name="local_address" value="0.0.0.0"/>
                        <cis:evidence_item_pk_field name="local_port" value="32910"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1646">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="protocol" value="udp"/>
                        <cis:evidence_item_pk_field name="local_address" value="0.0.0.0"/>
                        <cis:evidence_item_pk_field name="local_port" value="5353"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1647">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="protocol" value="udp"/>
                        <cis:evidence_item_pk_field name="local_address" value="0.0.0.0"/>
                        <cis:evidence_item_pk_field name="local_port" value="631"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1648">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="protocol" value="udp6"/>
                        <cis:evidence_item_pk_field name="local_address" value="::"/>
                        <cis:evidence_item_pk_field name="local_port" value="5353"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1649">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="protocol" value="udp6"/>
                        <cis:evidence_item_pk_field name="local_address" value="::"/>
                        <cis:evidence_item_pk_field name="local_port" value="35389"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1178"/>
      </check>
   </complex-check>
</rule-result>

4 Logging and Auditing

The items in this section describe how to configure logging, log monitoring, and auditing, using tools included in most distributions.

It is recommended that rsyslog be used for logging (with logwatch providing summarization) and auditd be used for auditing (with aureport providing summarization) to automatically monitor logs for intrusion attempts and other suspicious system behavior.

In addition to the local log files created by the steps in this section, it is also recommended that sites collect copies of their system logs on a secure, centralized log server via an encrypted connection. Not only does centralized logging help sites correlate events that may be occurring on multiple systems, but having a second copy of the system log information may be critical after a system compromise where the attacker has modified the local log files on the affected system(s). If a log correlation system is deployed, configure it to process the logs described in this section.

Because it is often necessary to correlate log information from many different systems (particularly after a security incident) it is recommended that the time be synchronized among systems and devices connected to the local network. The standard Internet protocol for time synchronization is the Network Time Protocol (NTP), which is supported by most network-ready devices. See the ntpd(8) manual page for more information on configuring NTP.

It is important that all logs described in this section be monitored on a regular basis and correlated to determine trends. A seemingly innocuous entry in one log could be more significant when compared to an entry in another log.

Note on log file permissions: There really isn't a "one size fits all" solution to the permissions on log files. Many sites utilize group permissions so that administrators who are in a defined security group, such as "wheel" do not have to elevate privileges to root in order to read log files. Also, if a third party log aggregation tool is used, it may need to have group permissions to read the log files, which is preferable to having it run setuid to root. Therefore, there are two remediation and audit steps for log file permissions. One is for systems that do not have a secured group method implemented that only permits root to read the log files (root:root 600). The other is for sites that do have such a setup and are designated as root:securegrp 640 where securegrp is the defined security group (in some cases wheel).

4.1 Configure System Accounting (auditd)

System auditing, through auditd, allows system administrators to monitor their systems such that they can detect unauthorized access or modification of data. By default, auditd will audit SELinux AVC denials, system logins, account modifications, and authentication events. Events will be logged to /var/log/audit/audit.log. The recording of these events will use a modest amount of disk space on a system. If significantly more events are captured, additional on system or off system storage may need to be allocated.

The recommendations in this section implement an audit policy that produces large quantities of logged data. In some environments it can be challenging to store or process these logs and as such they are marked as Level 2 for both Servers and Workstations.

Note: For 64 bit systems that have arch as a rule parameter, you will need two rules: one for 64 bit and one for 32 bit systems. For 32 bit systems, only one rule is needed.

Note: Once all configuration changes have been made to /etc/audit/audit.rules, the auditd configuration must be reloaded:

# service auditd reload

4.1.1 Configure Data Retention

When auditing, it is important to carefully configure the storage requirements for audit logs. By default, auditd will max out the log files at 5MB and retain only 4 copies of them. Older versions will be deleted. It is possible on a system that the 20 MBs of audit logs may fill up the system causing loss of audit data. While the recommendations here provide guidance, check your site policy for audit storage requirements.

4.2 Configure Logging

Logging services should be configured to prevent information leaks and to aggregate logs on a remote server so that they can be reviewed in the event of a system compromise and ease log analysis.

4.2.1 Configure rsyslog

The rsyslog software is recommended as a replacement for the syslogd daemon and provides improvements over syslogd, such as connection-oriented (i.e. TCP) transmission of logs, the option to log to database formats, and the encryption of log data en route to a central logging server.

Note: This section only applies if rsyslog is installed on the system.

Pass

4.2.1.1 Ensure rsyslog Service is enabled

Description:

Once the rsyslog package is installed it needs to be activated.

If the rsyslog service is not activated the system may default to the syslogd service or lack logging instead.

Run the following command to enable rsyslog:

# systemctl enable rsyslog

Any of the following tests or sub-groups may pass:
Ensure package name equals 'rsyslog' is not installed -- Less
CIS-CAT did not expect to collect any matching dpkg Packages, and found 1 item.
Package Name: rsyslog exists
Ensure standard service 'rsyslog' is enabled -- More
Check: All Must Pass
Command: systemctl is-enabled rsyslog.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+ enabled

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.1_Ensure_rsyslog_Service_is_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:00.991-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:00.993-06:00"
                    start-time="2017-02-13T20:12:00.903-06:00">
         <cis:or>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'rsyslog' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10279"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10277"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1715">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="rsyslog"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'rsyslog' is enabled"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10278"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10276"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10125">
                  <cis:evidence_item entity_check="at least one" itemref="1716">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled rsyslog.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="enabled" dt="string" ev=".+" name="stdout_line" op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1244"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1245"/>
      </check>
   </complex-check>
</rule-result>
Pass

4.2.1.3 Ensure rsyslog default file permissions configured

Description:

rsyslog will create logfiles that do not already exist on the system. This setting controls what permissions will be applied to these newly created files.

It is important to ensure that log files have the correct permissions to ensure that sensitive data is archived and protected.

Edit the /etc/rsyslog.conf and set $FileCreateMode to 0640 or more restrictive:

$FileCreateMode 0640

Any of the following tests or sub-groups may pass:
Ensure at least one file named /etc/rsyslog.conf exists and matches pattern ^\s*\$FileCreateMode\s+0[6420][40]0\s*(\s+#.*)?$ -- More
CIS-CAT expected at least 1 matching text file content item to be collected, and found 1 item.
File: /etc/rsyslog.conf exists
Pattern: ^\s*\$FileCreateMode\s+0[6420][40]0\s*(\s+#.*)?$
Match Text: $FileCreateMode 0640
Ensure package name equals 'rsyslog' is not installed -- Less
CIS-CAT did not expect to collect any matching dpkg Packages, and found 1 item.
Package Name: rsyslog exists

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.3_Ensure_rsyslog_default_file_permissions_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:01.043-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:01.043-06:00"
                    start-time="2017-02-13T20:12:00.994-06:00">
         <cis:or>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/rsyslog.conf exists and matches pattern ^\s*\$FileCreateMode\s+0[6420][40]0\s*(\s+#.*)?$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10280"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10278"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1717">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/rsyslog.conf"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="rsyslog.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*\$FileCreateMode\s+0[6420][40]0\s*(\s+#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="$FileCreateMode 0640"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'rsyslog' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10281"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10279"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1718">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="rsyslog"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1246"
                       value-id="xccdf_org.cisecurity.benchmarks_value_4.2.1.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1246"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1247"/>
      </check>
   </complex-check>
</rule-result>
Fail

4.2.1.4 Ensure rsyslog is configured to send logs to a remote log host

Description:

The rsyslog utility supports the ability to send logs it gathers to a remote log host running syslogd(8) or to receive messages from remote hosts, reducing administrative overhead.

Storing log data on a remote host protects log integrity from local attacks. If an attacker gains root access on the local system, they could tamper with or remove log data that is stored on the local system

Edit the /etc/rsyslog.conf file and add the following line (where loghost.example.com is the name of your central log host).

*.* @@loghost.example.com

Run the following command to restart rsyslog:

# pkill -HUP rsyslogd

Any of the following tests or sub-groups may pass:
Ensure package name equals 'rsyslog' is not installed -- Less
CIS-CAT did not expect to collect any matching dpkg Packages, and found 1 item.
Package Name: rsyslog exists
Ensure at least one file named /etc/rsyslog.conf exists and matches pattern ^\s*\*\.\*\s+@ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/rsyslog.conf does not exist
Pattern: ^\s*\*\.\*\s+@
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_4.2.1.4_Ensure_rsyslog_is_configured_to_send_logs_to_a_remote_log_host"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:01.087-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:01.087-06:00"
                    start-time="2017-02-13T20:12:01.044-06:00">
         <cis:or>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'rsyslog' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10283"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10281"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1719">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="rsyslog"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/rsyslog.conf exists and matches pattern ^\s*\*\.\*\s+@"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10282"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10280"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1720">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/rsyslog.conf"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="rsyslog.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*\*\.\*\s+@"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1248"
                       value-id="xccdf_org.cisecurity.benchmarks_value_4.2.1.4.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1248"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1249"/>
      </check>
   </complex-check>
</rule-result>

4.2.2 Configure syslog-ng

The syslog-ng software is recommended as a replacement for the syslogd daemon and provides improvements over syslogd, such as connection-oriented (i.e. TCP) transmission of logs, the option to log to database formats, and the encryption of log data en route to a central logging server.

Note: This section only applies if syslog-ng is installed on the system.

Pass

4.2.2.1 Ensure syslog-ng service is enabled

Description:

Once the syslog-ng package is installed it needs to be activated.

If the syslog-ng service is not activated the system may default to the syslogd service or lack logging instead.

Run the following command to enable syslog-ng:

# update-rc.d syslog-ng enable

Any of the following tests or sub-groups may pass:
Ensure standard service 'syslog-ng' is enabled -- Less
Check: All Must Pass
Command: systemctl is-enabled syslog-ng.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+
Ensure package name equals 'syslog-ng' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: syslog-ng does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.1_Ensure_syslog-ng_service_is_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:01.145-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:01.145-06:00"
                    start-time="2017-02-13T20:12:01.088-06:00">
         <cis:or>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'syslog-ng' is enabled"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10284"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10282"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10126">
                  <cis:evidence_item entity_check="at least one" itemref="1721">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled syslog-ng.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'syslog-ng' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10285"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10283"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1722">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="syslog-ng"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1250"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1251"/>
      </check>
   </complex-check>
</rule-result>
Pass

4.2.2.3 Ensure syslog-ng default file permissions configured

Description:

syslog-ng will create logfiles that do not already exist on the system. This setting controls what permissions will be applied to these newly created files.

It is important to ensure that log files exist and have the correct permissions to ensure that sensitive syslog-ng data is archived and protected.

Edit the /etc/syslog-ng/syslog-ng.conf and set perm option to 0640 or more restrictive:

options { chain_hostnames(off); flush_lines(0); perm(0640); stats_freq(3600); threaded(yes); };

Any of the following tests or sub-groups may pass:
Ensure package name equals 'syslog-ng' is not installed -- More
CIS-CAT did not expect to collect any matching dpkg Packages, and found 0 items.
Package Name: syslog-ng does not exist
Ensure at least one file named /etc/syslog-ng/syslog-ng.conf exists and matches pattern ^\s*options\s+\{\s*(\S+;\s*)*perm\(0[6420][40]0\);\s*(\S+;\s*)*\};\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/syslog-ng/syslog-ng.conf does not exist
Pattern: ^\s*options\s+\{\s*(\S+;\s*)*perm\(0[6420][40]0\);\s*(\S+;\s*)*\};\s*(\s+#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_4.2.2.3_Ensure_syslog-ng_default_file_permissions_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:01.187-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:01.187-06:00"
                    start-time="2017-02-13T20:12:01.147-06:00">
         <cis:or>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Ensure package name equals 'syslog-ng' is not installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10287"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10285"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1723">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="syslog-ng"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/syslog-ng/syslog-ng.conf exists and matches pattern ^\s*options\s+\{\s*(\S+;\s*)*perm\(0[6420][40]0\);\s*(\S+;\s*)*\};\s*(\s+#.*)?$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10286"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10284"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1724">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/syslog-ng/syslog-ng.conf"/>
                        <cis:evidence_item_pk_field name="pattern"
                                                    value="^\s*options\s+\{\s*(\S+;\s*)*perm\(0[6420][40]0\);\s*(\S+;\s*)*\};\s*(\s+#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1252"
                       value-id="xccdf_org.cisecurity.benchmarks_value_4.2.2.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1252"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1253"/>
      </check>
   </complex-check>
</rule-result>
Pass

4.2.3 Ensure rsyslog or syslog-ng is installed

Description:

The rsyslog and syslog-ng software are recommended replacements to the original syslogd daemon which provide improvements over syslogd, such as connection-oriented (i.e. TCP) transmission of logs, the option to log to database formats, and the encryption of log data en route to a central logging server.

The security enhancements of rsyslog and syslog-ng such as connection-oriented (i.e. TCP) transmission of logs, the option to log to database formats, and the encryption of log data en route to a central logging server) justify installing and configuring the package.

Install rsyslog or syslog-ng using one of the following commands:

# apt-get install rsyslog
# apt-get install syslog-ng

Any of the following tests or sub-groups may pass:
Ensure package name equals 'syslog-ng' is installed -- Less
CIS-CAT expected to collect at least 1 matching dpkg Package, and found 0 items.
Package Name: syslog-ng does not exist
Ensure package name equals 'rsyslog' is installed -- More
CIS-CAT expected to collect at least 1 matching dpkg Package, and found 1 item.
Package Name: rsyslog exists

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_4.2.3_Ensure_rsyslog_or_syslog-ng_is_installed"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:01.282-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:01.282-06:00"
                    start-time="2017-02-13T20:12:01.190-06:00">
         <cis:or>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure package name equals 'syslog-ng' is installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10289"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10287"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1725">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="name" value="syslog-ng"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure package name equals 'rsyslog' is installed"
                               negated="false"
                               ns="linux"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10288"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10286"
                               type="dpkginfo_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1726">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="name" value="rsyslog"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:or>
      </cis:evidence>
   </metadata>
   <complex-check operator="OR">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1254"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1255"/>
      </check>
   </complex-check>
</rule-result>
Fail

4.2.4 Ensure permissions on all logfiles are configured

Description:

Log files stored in /var/log/ contain logged information from many services on the system, or on log hosts others as well.

It is important to ensure that log files have the correct permissions to ensure that sensitive data is archived and protected.

Run the following command to set permissions on all existing log files:

# chmod -R g-wx,o-rwx /var/log/*

Ensure no file(s) named .* in /var/log exists and does not have permissions ----wxrwx -- Less
File: /var/log/Xorg.1.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/auth.log.2.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/faillog
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dmesg
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/Xorg.0.log.old
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/landscape/sysinfo.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/syslog
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/initial-status.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/cdebconf/questions.dat
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/cdebconf/templates.dat
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/media-info
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/status
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/partman
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/lsb-release
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/installer/hardware-summary
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/syslog
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/syslog.4.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/apt/history.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/apt/term.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/apt/term.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/apt/history.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/alternatives.log.1
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/Xorg.1.log.old
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lastlog
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false true
File: /var/log/bootstrap.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/syslog.3.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/Xorg.0.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/auth.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/unattended-upgrades/unattended-upgrades-shutdown.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/unattended-upgrades/unattended-upgrades.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/unattended-upgrades/unattended-upgrades.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/unattended-upgrades/unattended-upgrades-dpkg.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/syslog.6.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/kern.log.3.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/cups/access_log.2.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/cups/access_log.1
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/cups/page_log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/cups/error_log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/cups/access_log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dpkg.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/syslog.7.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/kern.log.1
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/wtmp.1
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false true
File: /var/log/upstart/cgproxy.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/udev.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/thermald.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/mountall.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/cgmanager.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/rsyslog.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/container-detect.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/cryptdisks.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/ureadahead.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/console-setup.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/network-interface-eth0.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/systemd-logind.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/procps-static-network-up.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/procps-virtual-filesystems.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/apport.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/upstart/kmod.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dmesg.0
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/btmp.1
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/btmp
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/auth.log.1
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/wtmp
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false true
File: /var/log/kern.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/kern.log.2.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/fsck/checkroot
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/fsck/checkfs
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/boot.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/alternatives.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dpkg.log.1
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/syslog.5.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/fontconfig.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/x-0.log.2.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/x-1.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/seat0-greeter.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/x-1.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/x-0.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/x-0.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/seat0-greeter.log.2.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/lightdm.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/seat0-greeter.log.1.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/lightdm.log.2.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/lightdm/lightdm.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/apport.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/syslog.1
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/auth.log.3.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/syslog.2.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/udev
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/lspci.txt
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/apt-term.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/screenlog.0
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/20170127-1148/main.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/apt-clone_system_state.tar.gz
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/xorg_fixup.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/apt.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/history.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/dist-upgrade/main.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/log/gpu-manager.log
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_4.2.4_Ensure_permissions_on_all_logfiles_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:03.900-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:03.901-06:00"
                    start-time="2017-02-13T20:12:01.283-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Ensure no file(s) named .* in /var/log exists and does not have permissions ----wxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10290"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10288"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10127">
                  <cis:evidence_item itemref="1827">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/Xorg.1.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="Xorg.1.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1828">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/auth.log.2.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="auth.log.2.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1829">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/faillog"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="faillog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1830">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dmesg"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="dmesg"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1831">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/Xorg.0.log.old"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="Xorg.0.log.old"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1832">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/landscape/sysinfo.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/landscape"/>
                        <cis:evidence_item_pk_field name="filename" value="sysinfo.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1833">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/syslog"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1834">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/initial-status.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer"/>
                        <cis:evidence_item_pk_field name="filename" value="initial-status.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1835">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/cdebconf/questions.dat"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer/cdebconf"/>
                        <cis:evidence_item_pk_field name="filename" value="questions.dat"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1836">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/cdebconf/templates.dat"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer/cdebconf"/>
                        <cis:evidence_item_pk_field name="filename" value="templates.dat"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1837">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/media-info"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer"/>
                        <cis:evidence_item_pk_field name="filename" value="media-info"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1838">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/status"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer"/>
                        <cis:evidence_item_pk_field name="filename" value="status"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1839">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/partman"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer"/>
                        <cis:evidence_item_pk_field name="filename" value="partman"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1840">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/lsb-release"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer"/>
                        <cis:evidence_item_pk_field name="filename" value="lsb-release"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1841">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/installer/hardware-summary"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/installer"/>
                        <cis:evidence_item_pk_field name="filename" value="hardware-summary"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1842">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/syslog"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1843">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/syslog.4.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog.4.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1844">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/apt/history.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/apt"/>
                        <cis:evidence_item_pk_field name="filename" value="history.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1845">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/apt/term.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/apt"/>
                        <cis:evidence_item_pk_field name="filename" value="term.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1846">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/apt/term.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/apt"/>
                        <cis:evidence_item_pk_field name="filename" value="term.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1847">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/apt/history.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/apt"/>
                        <cis:evidence_item_pk_field name="filename" value="history.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1848">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/alternatives.log.1"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="alternatives.log.1"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1849">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/Xorg.1.log.old"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="Xorg.1.log.old"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1850">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lastlog"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="lastlog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gwrite" op="equals" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1851">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/bootstrap.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="bootstrap.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1852">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/syslog.3.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog.3.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1853">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/Xorg.0.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="Xorg.0.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1854">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/auth.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="auth.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1855">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath"
                                                    value="/var/log/unattended-upgrades/unattended-upgrades-shutdown.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/unattended-upgrades"/>
                        <cis:evidence_item_pk_field name="filename" value="unattended-upgrades-shutdown.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1856">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/unattended-upgrades/unattended-upgrades.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/unattended-upgrades"/>
                        <cis:evidence_item_pk_field name="filename" value="unattended-upgrades.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1857">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath"
                                                    value="/var/log/unattended-upgrades/unattended-upgrades.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/unattended-upgrades"/>
                        <cis:evidence_item_pk_field name="filename" value="unattended-upgrades.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1858">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath"
                                                    value="/var/log/unattended-upgrades/unattended-upgrades-dpkg.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/unattended-upgrades"/>
                        <cis:evidence_item_pk_field name="filename" value="unattended-upgrades-dpkg.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1859">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath"
                                                    value="/var/log/unattended-upgrades/unattended-upgrades-dpkg.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/unattended-upgrades"/>
                        <cis:evidence_item_pk_field name="filename" value="unattended-upgrades-dpkg.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1860">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/syslog.6.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog.6.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1861">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/kern.log.3.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="kern.log.3.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1862">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/cups/access_log.2.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/cups"/>
                        <cis:evidence_item_pk_field name="filename" value="access_log.2.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1863">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/cups/access_log.1"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/cups"/>
                        <cis:evidence_item_pk_field name="filename" value="access_log.1"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1864">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/cups/page_log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/cups"/>
                        <cis:evidence_item_pk_field name="filename" value="page_log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1865">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/cups/error_log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/cups"/>
                        <cis:evidence_item_pk_field name="filename" value="error_log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1866">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/cups/access_log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/cups"/>
                        <cis:evidence_item_pk_field name="filename" value="access_log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1867">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dpkg.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="dpkg.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1868">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/syslog.7.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog.7.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1869">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/kern.log.1"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="kern.log.1"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1870">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/wtmp.1"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="wtmp.1"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gwrite" op="equals" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1871">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/cgproxy.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="cgproxy.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1872">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/udev.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="udev.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1873">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/thermald.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="thermald.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1874">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/mountall.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="mountall.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1875">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/cgmanager.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="cgmanager.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1876">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/rsyslog.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="rsyslog.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1877">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/container-detect.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="container-detect.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1878">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/cryptdisks.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="cryptdisks.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1879">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/ureadahead.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="ureadahead.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1880">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/console-setup.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="console-setup.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1881">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/network-interface-eth0.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="network-interface-eth0.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1882">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/systemd-logind.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="systemd-logind.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1883">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/procps-static-network-up.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="procps-static-network-up.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1884">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/procps-virtual-filesystems.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="procps-virtual-filesystems.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1885">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/apport.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="apport.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1886">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/upstart/kmod.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/upstart"/>
                        <cis:evidence_item_pk_field name="filename" value="kmod.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1887">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dmesg.0"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="dmesg.0"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1888">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/btmp.1"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="btmp.1"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1889">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/btmp"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="btmp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1890">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/auth.log.1"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="auth.log.1"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1891">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/wtmp"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="wtmp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gwrite" op="equals" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1892">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/kern.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="kern.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1893">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/kern.log.2.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="kern.log.2.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1894">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/fsck/checkroot"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/fsck"/>
                        <cis:evidence_item_pk_field name="filename" value="checkroot"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1895">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/fsck/checkfs"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/fsck"/>
                        <cis:evidence_item_pk_field name="filename" value="checkfs"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1896">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/boot.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="boot.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1897">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/alternatives.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="alternatives.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1898">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dpkg.log.1"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="dpkg.log.1"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1899">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/syslog.5.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog.5.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1900">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/fontconfig.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="fontconfig.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1901">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/x-0.log.2.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="x-0.log.2.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1902">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/x-1.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="x-1.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1903">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/seat0-greeter.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="seat0-greeter.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1904">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/x-1.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="x-1.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1905">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/x-0.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="x-0.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1906">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/x-0.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="x-0.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1907">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/seat0-greeter.log.2.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="seat0-greeter.log.2.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1908">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/lightdm.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="lightdm.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1909">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/seat0-greeter.log.1.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="seat0-greeter.log.1.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1910">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/lightdm.log.2.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="lightdm.log.2.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1911">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/lightdm/lightdm.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="lightdm.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1912">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/apport.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="apport.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1913">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/syslog.1"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog.1"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1914">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/auth.log.3.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="auth.log.3.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1915">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/syslog.2.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="syslog.2.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1916">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/udev"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="udev"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1917">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/lspci.txt"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade"/>
                        <cis:evidence_item_pk_field name="filename" value="lspci.txt"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1918">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/apt-term.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade"/>
                        <cis:evidence_item_pk_field name="filename" value="apt-term.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1919">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/screenlog.0"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade"/>
                        <cis:evidence_item_pk_field name="filename" value="screenlog.0"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1920">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/20170127-1148/main.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade/20170127-1148"/>
                        <cis:evidence_item_pk_field name="filename" value="main.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1921">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/apt-clone_system_state.tar.gz"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade"/>
                        <cis:evidence_item_pk_field name="filename" value="apt-clone_system_state.tar.gz"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1922">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/xorg_fixup.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade"/>
                        <cis:evidence_item_pk_field name="filename" value="xorg_fixup.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1923">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/apt.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade"/>
                        <cis:evidence_item_pk_field name="filename" value="apt.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1924">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/history.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade"/>
                        <cis:evidence_item_pk_field name="filename" value="history.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1925">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/dist-upgrade/main.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log/dist-upgrade"/>
                        <cis:evidence_item_pk_field name="filename" value="main.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1926">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/log/gpu-manager.log"/>
                        <cis:evidence_item_pk_field name="path" value="/var/log"/>
                        <cis:evidence_item_pk_field name="filename" value="gpu-manager.log"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1256"/>
      </check>
   </complex-check>
</rule-result>

5 Access, Authentication and Authorization

5.1 Configure cron

Pass

5.1.1 Ensure cron daemon is enabled

Description:

The cron daemon is used to execute batch jobs on the system.

While there may not be user jobs that need to be run on the system, the system does have maintenance jobs that may include security monitoring that have to run, and cron is used to execute them.

Run the following command to enable cron:

# systemctl enable crond

Ensure standard service 'cron' is enabled -- More
Check: All Must Pass
Command: systemctl is-enabled cron.service
Line Selection: enabled
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output matches the regular expression .+ enabled

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.1.1_Ensure_cron_daemon_is_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:03.981-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:03.981-06:00"
                    start-time="2017-02-13T20:12:03.963-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure standard service 'cron' is enabled"
                               negated="false"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10291"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10289"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10128">
                  <cis:evidence_item entity_check="at least one" itemref="1927">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command" value="systemctl is-enabled cron.service"/>
                        <cis:evidence_item_pk_field name="line_selection" value="enabled"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="enabled" dt="string" ev=".+" name="stdout_line" op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1257"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.1.2 Ensure permissions on /etc/crontab are configured

Description:

The /etc/crontab file is used by cron to control its own jobs. The commands in this item make sure that root is the user and group owner of the file and that only the owner can access the file.

This file contains information on what system jobs are run by cron. Write access to these files could provide unprivileged users with the ability to elevate their privileges. Read access to these files could provide users with the ability to gain insight on system jobs that run on the system and could provide them a way to gain unauthorized privileged access.

Run the following commands to set ownership and permissions on /etc/crontab:

# chown root:root /etc/crontab
# chmod og-rwx /etc/crontab

Ensure at least one file named /etc/crontab exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
File: /etc/crontab
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to false true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.1.2_Ensure_permissions_on_etccrontab_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.008-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.009-06:00"
                    start-time="2017-02-13T20:12:03.982-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/crontab exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10292"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10290"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10129">
                  <cis:evidence_item itemref="1928">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/crontab"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="crontab"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1258"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.1.3 Ensure permissions on /etc/cron.hourly are configured

Description:

This directory contains system cron jobs that need to run on an hourly basis. The files in this directory cannot be manipulated by the crontab command, but are instead edited by system administrators using a text editor. The commands below restrict read/write and search access to user and group root, preventing regular users from accessing this directory.

Granting write access to this directory for non-privileged users could provide them the means for gaining unauthorized elevated privileges. Granting read access to this directory could give an unprivileged user insight in how to gain elevated privileges or circumvent auditing controls.

Run the following commands to set ownership and permissions on /etc/cron.hourly:

# chown root:root /etc/cron.hourly
# chmod og-rwx /etc/cron.hourly

Ensure at least one file named /etc/cron.hourly exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
File: /etc/cron.hourly
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false true
the file's Other Read to be set to false true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Read to be set to false true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.1.3_Ensure_permissions_on_etccron.hourly_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.031-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.031-06:00"
                    start-time="2017-02-13T20:12:04.009-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/cron.hourly exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10293"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10291"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10130">
                  <cis:evidence_item itemref="1929">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/cron.hourly"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/cron.hourly"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gexec" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1259"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.1.4 Ensure permissions on /etc/cron.daily are configured

Description:

The /etc/cron.daily directory contains system cron jobs that need to run on a daily basis. The files in this directory cannot be manipulated by the crontab command, but are instead edited by system administrators using a text editor. The commands below restrict read/write and search access to user and group root, preventing regular users from accessing this directory.

Granting write access to this directory for non-privileged users could provide them the means for gaining unauthorized elevated privileges. Granting read access to this directory could give an unprivileged user insight in how to gain elevated privileges or circumvent auditing controls.

Run the following commands to set ownership and permissions on /etc/cron.daily:

# chown root:root /etc/cron.daily
# chmod og-rwx /etc/cron.daily

Ensure at least one file named /etc/cron.daily exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
File: /etc/cron.daily
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false true
the file's Other Read to be set to false true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Read to be set to false true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.1.4_Ensure_permissions_on_etccron.daily_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.055-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.057-06:00"
                    start-time="2017-02-13T20:12:04.032-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/cron.daily exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10294"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10292"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10131">
                  <cis:evidence_item itemref="1930">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/cron.daily"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/cron.daily"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gexec" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1260"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.1.5 Ensure permissions on /etc/cron.weekly are configured

Description:

The /etc/cron.weekly directory contains system cron jobs that need to run on a weekly basis. The files in this directory cannot be manipulated by the crontab command, but are instead edited by system administrators using a text editor. The commands below restrict read/write and search access to user and group root, preventing regular users from accessing this directory.

Granting write access to this directory for non-privileged users could provide them the means for gaining unauthorized elevated privileges. Granting read access to this directory could give an unprivileged user insight in how to gain elevated privileges or circumvent auditing controls.

Run the following commands to set ownership and permissions on /etc/cron.weekly:

# chown root:root /etc/cron.weekly
# chmod og-rwx /etc/cron.weekly

Ensure at least one file named /etc/cron.weekly exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
File: /etc/cron.weekly
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false true
the file's Other Read to be set to false true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Read to be set to false true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.1.5_Ensure_permissions_on_etccron.weekly_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.085-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.085-06:00"
                    start-time="2017-02-13T20:12:04.057-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/cron.weekly exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10295"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10293"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10132">
                  <cis:evidence_item itemref="1931">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/cron.weekly"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/cron.weekly"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gexec" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1261"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.1.6 Ensure permissions on /etc/cron.monthly are configured

Description:

The /etc/cron.monthly directory contains system cron jobs that need to run on a monthly basis. The files in this directory cannot be manipulated by the crontab command, but are instead edited by system administrators using a text editor. The commands below restrict read/write and search access to user and group root, preventing regular users from accessing this directory.

Granting write access to this directory for non-privileged users could provide them the means for gaining unauthorized elevated privileges. Granting read access to this directory could give an unprivileged user insight in how to gain elevated privileges or circumvent auditing controls.

Run the following commands to set ownership and permissions on /etc/cron.monthly:

# chown root:root /etc/cron.monthly
# chmod og-rwx /etc/cron.monthly

Ensure at least one file named /etc/cron.monthly exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
File: /etc/cron.monthly
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false true
the file's Other Read to be set to false true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Read to be set to false true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.1.6_Ensure_permissions_on_etccron.monthly_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.109-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.109-06:00"
                    start-time="2017-02-13T20:12:04.086-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/cron.monthly exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10296"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10294"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10133">
                  <cis:evidence_item itemref="1932">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/cron.monthly"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/cron.monthly"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gexec" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1262"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.1.7 Ensure permissions on /etc/cron.d are configured

Description:

The /etc/cron.d directory contains system cron jobs that need to run in a similar manner to the hourly, daily weekly and monthly jobs from /etc/crontab, but require more granular control as to when they run. The files in this directory cannot be manipulated by the crontab command, but are instead edited by system administrators using a text editor. The commands below restrict read/write and search access to user and group root, preventing regular users from accessing this directory.

Granting write access to this directory for non-privileged users could provide them the means for gaining unauthorized elevated privileges. Granting read access to this directory could give an unprivileged user insight in how to gain elevated privileges or circumvent auditing controls.

Run the following commands to set ownership and permissions on /etc/cron.d:

# chown root:root /etc/cron.d
# chmod og-rwx /etc/cron.d

Ensure at least one file named /etc/cron.d exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
File: /etc/cron.d
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false true
the file's Other Read to be set to false true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Read to be set to false true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.1.7_Ensure_permissions_on_etccron.d_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.144-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.145-06:00"
                    start-time="2017-02-13T20:12:04.110-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/cron.d exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10297"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10295"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10134">
                  <cis:evidence_item itemref="1933">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/cron.d"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/cron.d"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gexec" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gread" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1263"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.1.8 Ensure at/cron is restricted to authorized users

Description:

Configure /etc/cron.allow and /etc/at.allow to allow specific users to use these services. If /etc/cron.allow or /etc/at.allow do not exist, then /etc/at.deny and /etc/cron.deny are checked. Any user not specifically defined in those files is allowed to use at and cron. By removing the files, only users in /etc/cron.allow and /etc/at.allow are allowed to use at and cron. Note that even though a given user is not listed in cron.allow, cron jobs can still be run as that user. The cron.allow file only controls administrative access to the crontab command for scheduling and modifying cron jobs.

On many systems, only the system administrator is authorized to schedule cron jobs. Using the cron.allow file to control who can run cron jobs enforces this policy. It is easier to manage an allow list than a deny list. In a deny list, you could potentially add a user ID to the system and forget to add it to the deny files.

Run the following commands to remove /etc/cron.deny and /etc/at.deny and create and set permissions and ownership for /etc/cron.allow and /etc/at.allow:

# rm /etc/cron.deny
# rm /etc/at.deny
# touch /etc/cron.allow
# touch /etc/at.allow
# chmod og-rwx /etc/cron.allow
# chmod og-rwx /etc/at.allow
# chown root:root /etc/cron.allow
# chown root:root /etc/at.allow

All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/at.allow exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
CIS-CAT expected at least 1 matching file item to be collected, and found 0 items.
File: /etc/at.allow does not exist
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/cron.allow exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
CIS-CAT expected at least 1 matching file item to be collected, and found 0 items.
File: /etc/cron.allow does not exist
All of the following tests or sub-groups must pass:
Ensure no file named /etc/at.deny exists -- Less
CIS-CAT did not expect to collect any file items, and found 1 item.
File: /etc/at.deny exists
Ensure no file named /etc/cron.deny exists -- More
CIS-CAT did not expect to collect any file items, and found 0 items.
File: /etc/cron.deny does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.1.8_Ensure_atcron_is_restricted_to_authorized_users"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.172-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.172-06:00"
                    start-time="2017-02-13T20:12:04.145-06:00">
         <cis:and>
            <cis:and>
               <cis:and>
                  <cis:evidence_test check="all" check_existence="none_exist"
                                     comment="Ensure no file named /etc/at.deny exists"
                                     negated="false"
                                     ns="unix"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10299"
                                     result="false"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10297"
                                     type="file_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="1934">
                           <cis:evidence_item_pk status="exists">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/at.deny"/>
                              <cis:evidence_item_pk_field name="path" value="/etc"/>
                              <cis:evidence_item_pk_field name="filename" value="at.deny"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
                  <cis:evidence_test check="all" check_existence="none_exist"
                                     comment="Ensure no file named /etc/cron.deny exists"
                                     negated="false"
                                     ns="unix"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10298"
                                     result="true"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10296"
                                     type="file_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="1935">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/cron.deny"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
               </cis:and>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file named /etc/cron.allow exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                                  negated="false"
                                  ns="unix"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10300"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10298"
                                  type="file_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="1936">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/cron.allow"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/at.allow exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10301"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10299"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1937">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/at.allow"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <complex-check operator="AND">
         <complex-check operator="AND">
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1264"/>
            </check>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1265"/>
            </check>
         </complex-check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1266"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1267"/>
      </check>
   </complex-check>
</rule-result>

5.2 SSH Server Configuration

SSH is a secure, encrypted replacement for common login services such as telnet, ftp, rlogin, rsh, and rcp. It is strongly recommended that sites abandon older clear-text login protocols and use SSH to prevent session hijacking and sniffing of sensitive data off the network.

Note: The recommendations in this section only apply if the SSH daemon is installed on the system, if remote access is not required the SSH daemon can be removed and this section skipped.

Note: Once all configuration changes have been made to /etc/ssh/sshd_config, the sshd configuration must be reloaded:

# service sshd reload
Fail

5.2.1 Ensure permissions on /etc/ssh/sshd_config are configured

Description:

The /etc/ssh/sshd_config file contains configuration specifications for sshd. The command below sets the owner and group of the file to root.

The /etc/ssh/sshd_config file needs to be protected from unauthorized changes by non-privileged users.

Run the following commands to set ownership and permissions on /etc/ssh/sshd_config:

# chown root:root /etc/ssh/sshd_config
# chmod og-rwx /etc/ssh/sshd_config

Ensure at least one file named /etc/ssh/sshd_config exists and is owned by 0:0 and does not have permissions ---rwxrwx -- Less
CIS-CAT expected at least 1 matching file item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.1_Ensure_permissions_on_etcsshsshd_config_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.241-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.241-06:00"
                    start-time="2017-02-13T20:12:04.220-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/ssh/sshd_config exists and is owned by 0:0 and does not have permissions ---rwxrwx"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10302"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10300"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1945">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1268"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.2 Ensure SSH Protocol is set to 2

Description:

SSH supports two different and incompatible protocols: SSH1 and SSH2. SSH1 was the original protocol and was subject to security issues. SSH2 is more advanced and secure.

SSH v1 suffers from insecurities that do not affect SSH v2.

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

Protocol 2

Ensure 'Protocol' sshd config parameter equals 2 (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*Protocol\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.2_Ensure_SSH_Protocol_is_set_to_2"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.243-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.250-06:00"
                    start-time="2017-02-13T20:12:04.241-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'Protocol' sshd config parameter equals 2 (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10303"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10301"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1946">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*Protocol\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1269"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.2.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1269"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.3 Ensure SSH LogLevel is set to INFO

Description:

The INFO parameter specifies that login and logout activity will be logged.

SSH provides several logging levels with varying amounts of verbosity. DEBUG is specifically not recommended other than strictly for debugging SSH communications since it provides so much data that it is difficult to identify important security information. INFO level is the basic level that only records login activity of SSH users. In many situations, such as Incident Response, it is important to determine when a particular user was active on a system. The logout record can eliminate those users who disconnected, which helps narrow the field.

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

LogLevel INFO

Ensure 'LogLevel' sshd config parameter equals INFO (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*LogLevel\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.3_Ensure_SSH_LogLevel_is_set_to_INFO"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.255-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.256-06:00"
                    start-time="2017-02-13T20:12:04.253-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'LogLevel' sshd config parameter equals INFO (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10304"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10302"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1947">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*LogLevel\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1270"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1270"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.4 Ensure SSH X11 forwarding is disabled

Description:

The X11Forwarding parameter provides the ability to tunnel X11 traffic through the connection to enable remote graphic connections.

Disable X11 forwarding unless there is an operational requirement to use X11 applications directly. There is a small risk that the remote X11 servers of users who are logged in via SSH with X11 forwarding could be compromised by other users on the X11 server. Note that even if X11 forwarding is disabled, users can always install their own forwarders.

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

X11Forwarding no

Ensure 'X11Forwarding' sshd config parameter equals no (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*X11Forwarding\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.4_Ensure_SSH_X11_forwarding_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.262-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.262-06:00"
                    start-time="2017-02-13T20:12:04.256-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'X11Forwarding' sshd config parameter equals no (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10305"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10303"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1948">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*X11Forwarding\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1271"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.4.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1271"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.5 Ensure SSH MaxAuthTries is set to 4 or less

Description:

The MaxAuthTries parameter specifies the maximum number of authentication attempts permitted per connection. When the login failure count reaches half the number, error messages will be written to the syslog file detailing the login failure.

Setting the MaxAuthTries parameter to a low number will minimize the risk of successful brute force attacks to the SSH server. While the recommended setting is 4, set the number based on site policy.

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

MaxAuthTries 4

Ensure 'MaxAuthTries' sshd config parameter less than or equal 4 (int) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*MaxAuthTries\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.5_Ensure_SSH_MaxAuthTries_is_set_to_4_or_less"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.264-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.264-06:00"
                    start-time="2017-02-13T20:12:04.262-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'MaxAuthTries' sshd config parameter less than or equal 4 (int)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10306"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10304"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1949">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*MaxAuthTries\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1272"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.5.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1272"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.6 Ensure SSH IgnoreRhosts is enabled

Description:

The IgnoreRhosts parameter specifies that .rhosts and .shosts files will not be used in RhostsRSAAuthentication or HostbasedAuthentication.

Setting this parameter forces users to enter a password when authenticating with ssh.

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

IgnoreRhosts yes

Ensure 'IgnoreRhosts' sshd config parameter equals yes (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*IgnoreRhosts\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.6_Ensure_SSH_IgnoreRhosts_is_enabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.270-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.270-06:00"
                    start-time="2017-02-13T20:12:04.264-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'IgnoreRhosts' sshd config parameter equals yes (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10307"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10305"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1950">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*IgnoreRhosts\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1273"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.6.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1273"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.7 Ensure SSH HostbasedAuthentication is disabled

Description:

The HostbasedAuthentication parameter specifies if authentication is allowed through trusted hosts via the user of .rhosts, or /etc/hosts.equiv, along with successful public key client host authentication. This option only applies to SSH Protocol Version 2.

Even though the .rhosts files are ineffective if support is disabled in /etc/pam.conf, disabling the ability to use .rhosts files in SSH provides an additional layer of protection .

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

HostbasedAuthentication no

Ensure 'HostbasedAuthentication' sshd config parameter equals no (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*HostbasedAuthentication\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.7_Ensure_SSH_HostbasedAuthentication_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.273-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.273-06:00"
                    start-time="2017-02-13T20:12:04.271-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'HostbasedAuthentication' sshd config parameter equals no (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10308"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10306"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1951">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*HostbasedAuthentication\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1274"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.7.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1274"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.8 Ensure SSH root login is disabled

Description:

The PermitRootLogin parameter specifies if the root user can log in using ssh(1). The default is no.

Disallowing root logins over SSH requires system admins to authenticate using their own individual account, then escalating to root via sudo or su. This in turn limits opportunity for non-repudiation and provides a clear audit trail in the event of a security incident

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

PermitRootLogin no

Ensure 'PermitRootLogin' sshd config parameter equals no (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*PermitRootLogin\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.8_Ensure_SSH_root_login_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.279-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.280-06:00"
                    start-time="2017-02-13T20:12:04.278-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'PermitRootLogin' sshd config parameter equals no (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10309"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10307"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1952">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*PermitRootLogin\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1275"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.8.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1275"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.9 Ensure SSH PermitEmptyPasswords is disabled

Description:

The PermitEmptyPasswords parameter specifies if the SSH server allows login to accounts with empty password strings.

Disallowing remote shell access to accounts that have an empty password reduces the probability of unauthorized access to the system

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

PermitEmptyPasswords no

Ensure 'PermitEmptyPasswords' sshd config parameter equals no (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*PermitEmptyPasswords\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.9_Ensure_SSH_PermitEmptyPasswords_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.286-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.286-06:00"
                    start-time="2017-02-13T20:12:04.280-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'PermitEmptyPasswords' sshd config parameter equals no (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10310"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10308"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1953">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*PermitEmptyPasswords\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1276"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.9.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1276"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.10 Ensure SSH PermitUserEnvironment is disabled

Description:

The PermitUserEnvironment option allows users to present environment options to the ssh daemon.

Permitting users the ability to set environment variables through the SSH daemon could potentially allow users to bypass security controls (e.g. setting an execution path that has ssh executing trojan'd programs)

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

PermitUserEnvironment no

Ensure 'PermitUserEnvironment' sshd config parameter equals no (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*PermitUserEnvironment\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.10_Ensure_SSH_PermitUserEnvironment_is_disabled"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.190-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.190-06:00"
                    start-time="2017-02-13T20:12:04.178-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'PermitUserEnvironment' sshd config parameter equals no (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10311"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10309"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1938">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*PermitUserEnvironment\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1277"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.10.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1277"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.11 Ensure only approved MAC algorithms are used

Description:

This variable limits the types of MAC algorithms that SSH can use during communication.

MD5 and 96-bit MAC algorithms are considered weak and have been shown to increase exploitability in SSH downgrade attacks. Weak algorithms continue to have a great deal of attention as a weak spot that can be exploited with expanded computing power. An attacker that breaks the algorithm could take advantage of a MiTM position to decrypt the SSH tunnel and capture credentials and information

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh.com

Ensure 'MACs' sshd config parameter pattern match ^((hmac-sha2-512-etm@openssh\.com|hmac-sha2-256-etm@openssh\.com|umac-128-etm@openssh\.com|hmac-sha2-512|hmac-sha2-256|umac-128@openssh\.com|curve25519-sha256@libssh\.org|diffie-hellman-group-exchange-sha2 -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*MACs\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.11_Ensure_only_approved_MAC_algorithms_are_used"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.192-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.192-06:00"
                    start-time="2017-02-13T20:12:04.190-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'MACs' sshd config parameter pattern match ^((hmac-sha2-512-etm@openssh\.com|hmac-sha2-256-etm@openssh\.com|umac-128-etm@openssh\.com|hmac-sha2-512|hmac-sha2-256|umac-128@openssh\.com|curve25519-sha256@libssh\.org|diffie-hellman-group-exchange-sha2"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10312"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10310"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1939">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*MACs\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1278"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.11.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1278"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.12 Ensure SSH Idle Timeout Interval is configured

Description:

The two options ClientAliveInterval and ClientAliveCountMax control the timeout of ssh sessions. When the ClientAliveInterval variable is set, ssh sessions that have no activity for the specified length of time are terminated. When the ClientAliveCountMax variable is set, sshd will send client alive messages at every ClientAliveInterval interval. When the number of consecutive client alive messages are sent with no response from the client, the ssh session is terminated. For example, if the ClientAliveInterval is set to 15 seconds and the ClientAliveCountMax is set to 3, the client ssh session will be terminated after 45 seconds of idle time.

Having no timeout value associated with a connection could allow an unauthorized user access to another user's ssh session (e.g. user walks away from their computer and doesn't lock the screen). Setting a timeout value at least reduces the risk of this happening..

While the recommended setting is 300 seconds (5 minutes), set this timeout value based on site policy. The recommended setting for ClientAliveCountMax is 0. In this case, the client session will be terminated after 5 minutes of idle time and no keepalive messages will be sent.

Edit the /etc/ssh/sshd_config file to set the parameters as follows:

ClientAliveInterval 300
ClientAliveCountMax 0

All of the following tests or sub-groups must pass:
Ensure 'ClientAliveInterval' sshd config parameter less than or equal 300 (int) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*ClientAliveInterval\s+(\S+)\s*(?:#.*)?$
Match Text: No match found
Ensure 'ClientAliveCountMax' sshd config parameter less than or equal 3 (int) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*ClientAliveCountMax\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.12_Ensure_SSH_Idle_Timeout_Interval_is_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.206-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.206-06:00"
                    start-time="2017-02-13T20:12:04.198-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'ClientAliveInterval' sshd config parameter less than or equal 300 (int)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10313"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10311"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1940">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*ClientAliveInterval\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'ClientAliveCountMax' sshd config parameter less than or equal 3 (int)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10314"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10312"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1941">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*ClientAliveCountMax\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1279"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.12.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1279"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1280"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.12.2_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1280"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.13 Ensure SSH LoginGraceTime is set to one minute or less

Description:

The LoginGraceTime parameter specifies the time allowed for successful authentication to the SSH server. The longer the Grace period is the more open unauthenticated connections can exist. Like other session controls in this session the Grace Period should be limited to appropriate organizational limits to ensure the service is available for needed access.

Setting the LoginGraceTime parameter to a low number will minimize the risk of successful brute force attacks to the SSH server. It will also limit the number of concurrent unauthenticated connections While the recommended setting is 60 seconds (1 Minute), set the number based on site policy.

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

LoginGraceTime 60

Ensure 'LoginGraceTime' sshd config parameter less than or equal 60 (int) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*LoginGraceTime\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.13_Ensure_SSH_LoginGraceTime_is_set_to_one_minute_or_less"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.208-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.214-06:00"
                    start-time="2017-02-13T20:12:04.206-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'LoginGraceTime' sshd config parameter less than or equal 60 (int)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10315"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10313"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1942">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*LoginGraceTime\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1281"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.13.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1281"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.14 Ensure SSH access is limited

Description:

There are several options available to limit which users and group can access the system via SSH. It is recommended that at least one of the following options be leveraged:

AllowUsers

The AllowUsers variable gives the system administrator the option of allowing specific users to ssh into the system. The list consists of comma separated user names. Numeric user IDs are not recognized with this variable. If a system administrator wants to restrict user access further by only allowing the allowed users to log in from a particular host, the entry can be specified in the form of user@host.

AllowGroups

The AllowGroups variable gives the system administrator the option of allowing specific groups of users to ssh into the system. The list consists of comma separated group names. Numeric group IDs are not recognized with this variable.

DenyUsers

The DenyUsers variable gives the system administrator the option of denying specific users to ssh into the system. The list consists of comma separated user names. Numeric user IDs are not recognized with this variable. If a system administrator wants to restrict user access further by specifically denying a user's access from a particular host, the entry can be specified in the form of user@host.

DenyGroups

The DenyGroups variable gives the system administrator the option of denying specific groups of users to ssh into the system. The list consists of comma separated group names. Numeric group IDs are not recognized with this variable.

Restricting which users can remotely access the system via SSH will help ensure that only authorized users access the system.

Edit the /etc/ssh/sshd_config file to set one or more of the parameter as follows:

AllowUsers <userlist>
AllowGroups <grouplist>
DenyUsers <userlist>
DenyGroups <grouplist>

Ensure at least one file named /etc/ssh/sshd_config exists and matches pattern ^\s*(AllowUsers|AllowGroups|DenyUsers|DenyGroups)\s+(\S+) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*(AllowUsers|AllowGroups|DenyUsers|DenyGroups)\s+(\S+)
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.14_Ensure_SSH_access_is_limited"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.216-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.216-06:00"
                    start-time="2017-02-13T20:12:04.214-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/ssh/sshd_config exists and matches pattern ^\s*(AllowUsers|AllowGroups|DenyUsers|DenyGroups)\s+(\S+)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10316"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10314"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1943">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern"
                                                    value="^\s*(AllowUsers|AllowGroups|DenyUsers|DenyGroups)\s+(\S+)"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1282"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.14.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1282"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.2.15 Ensure SSH warning banner is configured

Description:

The Banner parameter specifies a file whose contents must be sent to the remote user before authentication is permitted. By default, no banner is displayed.

Banners are used to warn connecting users of the particular site's policy regarding connection. Presenting a warning message prior to the normal user login may assist the prosecution of trespassers on the computer system.

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

Banner /etc/issue.net

Ensure 'Banner' sshd config parameter pattern match .+ (string) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/ssh/sshd_config does not exist
Pattern: ^\s*Banner\s+(\S+)\s*(?:#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.2.15_Ensure_SSH_warning_banner_is_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.220-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.220-06:00"
                    start-time="2017-02-13T20:12:04.217-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure 'Banner' sshd config parameter pattern match .+ (string)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10317"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10315"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1944">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/ssh/sshd_config"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*Banner\s+(\S+)\s*(?:#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1283"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.2.15.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1283"/>
      </check>
   </complex-check>
</rule-result>

5.3 Configure PAM

PAM (Pluggable Authentication Modules) is a service that implements modular authentication modules on UNIX systems. PAM is implemented as a set of shared objects that are loaded and executed when a program needs to authenticate a user. Files for PAM are typically located in the /etc/pam.d directory. PAM must be carefully configured to secure system authentication. While this section covers some of PAM, please consult other PAM resources to fully understand the configuration capabilities.

Fail

5.3.1 Ensure password creation requirements are configured

Description:

The pam_pwquality.so module checks the strength of passwords. It performs checks such as making sure a password is not a dictionary word, it is a certain length, contains a mix of characters (e.g. alphabet, numeric, other) and more. The following are definitions of the pam_pwquality.so options.

  • try_first_pass - retrieve the password from a previous stacked PAM module. If not available, then prompt the user for a password.
  • retry=3 - Allow 3 tries before sending back a failure.

The following options are set in the /etc/security/pwquality.conf file:

  • minlen=14 - password must be 14 characters or more
  • dcredit=-1 - provide at least one digit
  • ucredit=-1 - provide at least one uppercase character
  • ocredit=-1 - provide at least one special character
  • lcredit=-1 - provide at least one lowercase character

The settings shown above are one possible policy. Alter these values to conform to your own organization's password policies.

Strong passwords protect systems from being hacked through brute force methods.

Run the following command to install the pam_pwquality module:

apt-get install libpam-pwquality

Edit the /etc/pam.d/common-passwd file to include the appropriate options for pam_pwquality.so and to conform to site policy:

password requisite pam_pwquality.so try_first_pass retry=3

Edit /etc/security/pwquality.conf to add or update the following settings to conform to site policy:

minlen=14
dcredit=-1
ucredit=-1
ocredit=-1
lcredit=-1

All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*ocredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/security/pwquality.conf does not exist
Pattern: ^\s*ocredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*ucredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/security/pwquality.conf does not exist
Pattern: ^\s*ucredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*lcredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/security/pwquality.conf does not exist
Pattern: ^\s*lcredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*dcredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/security/pwquality.conf does not exist
Pattern: ^\s*dcredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*minlen\s*=\s*(1[4-9]|[2-9][0-9]|[1-9][0-9][0-9]+)\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/security/pwquality.conf does not exist
Pattern: ^\s*minlen\s*=\s*(1[4-9]|[2-9][0-9]|[1-9][0-9][0-9]+)\s*(\s+#.*)?$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/pam.d/common-password exists and matches pattern ^\s*password\s+requisite\s+pam_pwquality\.so\s+(\S+\s+)*try_first_pass -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/pam.d/common-password does not exist
Pattern: ^\s*password\s+requisite\s+pam_pwquality\.so\s+(\S+\s+)*try_first_pass
Match Text: No match found
Ensure at least one file named /etc/pam.d/common-password exists and matches pattern ^\s*password\s+requisite\s+pam_pwquality\.so\s+(\S+\s+)*retry=[3210] -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/pam.d/common-password does not exist
Pattern: ^\s*password\s+requisite\s+pam_pwquality\.so\s+(\S+\s+)*retry=[3210]
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.3.1_Ensure_password_creation_requirements_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.303-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.304-06:00"
                    start-time="2017-02-13T20:12:04.287-06:00">
         <cis:and>
            <cis:and>
               <cis:and>
                  <cis:and>
                     <cis:and>
                        <cis:and>
                           <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                              comment="Ensure at least one file named /etc/pam.d/common-password exists and matches pattern ^\s*password\s+requisite\s+pam_pwquality\.so\s+(\S+\s+)*try_first_pass"
                                              negated="false"
                                              ns="independent"
                                              objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10318"
                                              result="false"
                                              testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10316"
                                              type="textfilecontent54_test">
                              <cis:evidence_object>
                                 <cis:evidence_item itemref="1954">
                                    <cis:evidence_item_pk status="does not exist">
                                       <cis:evidence_item_pk_field name="filepath" value="/etc/pam.d/common-password"/>
                                       <cis:evidence_item_pk_field name="path" value="/etc/pam.d"/>
                                       <cis:evidence_item_pk_field name="filename" value="common-password"/>
                                       <cis:evidence_item_pk_field name="pattern"
                                                                   value="^\s*password\s+requisite\s+pam_pwquality\.so\s+(\S+\s+)*try_first_pass"/>
                                    </cis:evidence_item_pk>
                                 </cis:evidence_item>
                              </cis:evidence_object>
                           </cis:evidence_test>
                           <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                              comment="Ensure at least one file named /etc/pam.d/common-password exists and matches pattern ^\s*password\s+requisite\s+pam_pwquality\.so\s+(\S+\s+)*retry=[3210]"
                                              negated="false"
                                              ns="independent"
                                              objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10319"
                                              result="false"
                                              testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10317"
                                              type="textfilecontent54_test">
                              <cis:evidence_object>
                                 <cis:evidence_item itemref="1955">
                                    <cis:evidence_item_pk status="does not exist">
                                       <cis:evidence_item_pk_field name="filepath" value="/etc/pam.d/common-password"/>
                                       <cis:evidence_item_pk_field name="path" value="/etc/pam.d"/>
                                       <cis:evidence_item_pk_field name="filename" value="common-password"/>
                                       <cis:evidence_item_pk_field name="pattern"
                                                                   value="^\s*password\s+requisite\s+pam_pwquality\.so\s+(\S+\s+)*retry=[3210]"/>
                                    </cis:evidence_item_pk>
                                 </cis:evidence_item>
                              </cis:evidence_object>
                           </cis:evidence_test>
                        </cis:and>
                        <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                           comment="Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*minlen\s*=\s*(1[4-9]|[2-9][0-9]|[1-9][0-9][0-9]+)\s*(\s+#.*)?$"
                                           negated="false"
                                           ns="independent"
                                           objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10320"
                                           result="false"
                                           testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10318"
                                           type="textfilecontent54_test">
                           <cis:evidence_object>
                              <cis:evidence_item itemref="1956">
                                 <cis:evidence_item_pk status="does not exist">
                                    <cis:evidence_item_pk_field name="filepath" value="/etc/security/pwquality.conf"/>
                                    <cis:evidence_item_pk_field name="path" value="/etc/security"/>
                                    <cis:evidence_item_pk_field name="filename" value="pwquality.conf"/>
                                    <cis:evidence_item_pk_field name="pattern"
                                                                value="^\s*minlen\s*=\s*(1[4-9]|[2-9][0-9]|[1-9][0-9][0-9]+)\s*(\s+#.*)?$"/>
                                 </cis:evidence_item_pk>
                              </cis:evidence_item>
                           </cis:evidence_object>
                        </cis:evidence_test>
                     </cis:and>
                     <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                        comment="Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*dcredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$"
                                        negated="false"
                                        ns="independent"
                                        objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10321"
                                        result="false"
                                        testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10319"
                                        type="textfilecontent54_test">
                        <cis:evidence_object>
                           <cis:evidence_item itemref="1957">
                              <cis:evidence_item_pk status="does not exist">
                                 <cis:evidence_item_pk_field name="filepath" value="/etc/security/pwquality.conf"/>
                                 <cis:evidence_item_pk_field name="path" value="/etc/security"/>
                                 <cis:evidence_item_pk_field name="filename" value="pwquality.conf"/>
                                 <cis:evidence_item_pk_field name="pattern" value="^\s*dcredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$"/>
                              </cis:evidence_item_pk>
                           </cis:evidence_item>
                        </cis:evidence_object>
                     </cis:evidence_test>
                  </cis:and>
                  <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                     comment="Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*lcredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$"
                                     negated="false"
                                     ns="independent"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10322"
                                     result="false"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10320"
                                     type="textfilecontent54_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="1958">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/security/pwquality.conf"/>
                              <cis:evidence_item_pk_field name="path" value="/etc/security"/>
                              <cis:evidence_item_pk_field name="filename" value="pwquality.conf"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\s*lcredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
               </cis:and>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*ucredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10323"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10321"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="1959">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/security/pwquality.conf"/>
                           <cis:evidence_item_pk_field name="path" value="/etc/security"/>
                           <cis:evidence_item_pk_field name="filename" value="pwquality.conf"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\s*ucredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/security/pwquality.conf exists and matches pattern ^\s*ocredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10324"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10322"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1960">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/security/pwquality.conf"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/security"/>
                        <cis:evidence_item_pk_field name="filename" value="pwquality.conf"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*ocredit\s*=\s*-[1-9][0-9]*\s*(\s+#.*)?$"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <complex-check operator="AND">
         <complex-check operator="AND">
            <complex-check operator="AND">
               <complex-check operator="AND">
                  <complex-check operator="AND">
                     <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                        <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1284"
                                      value-id="xccdf_org.cisecurity.benchmarks_value_5.3.1.1_var"/>
                        <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                           name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1284"/>
                     </check>
                     <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                        <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1285"
                                      value-id="xccdf_org.cisecurity.benchmarks_value_5.3.1.2_var"/>
                        <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                           name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1285"/>
                     </check>
                  </complex-check>
                  <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                     <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1286"
                                   value-id="xccdf_org.cisecurity.benchmarks_value_5.3.1.3_var"/>
                     <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                        name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1286"/>
                  </check>
               </complex-check>
               <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
                  <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1287"
                                value-id="xccdf_org.cisecurity.benchmarks_value_5.3.1.4_var"/>
                  <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                     name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1287"/>
               </check>
            </complex-check>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1288"
                             value-id="xccdf_org.cisecurity.benchmarks_value_5.3.1.5_var"/>
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1288"/>
            </check>
         </complex-check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1289"
                          value-id="xccdf_org.cisecurity.benchmarks_value_5.3.1.6_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1289"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1290"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.3.1.7_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1290"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.3.3 Ensure password reuse is limited

Description:

The /etc/security/opasswd file stores the users' old passwords and can be checked to ensure that users are not recycling recent passwords.

Forcing users not to reuse their past 5 passwords make it less likely that an attacker will be able to guess the password.

Note that these change only apply to accounts configured on the local system.

Edit the /etc/pam.d/common-password file to include the remember option and conform to site policy as shown:

password sufficient pam_unix.so remember=5

Ensure at least one file named /etc/pam.d/common-password exists and matches pattern ^password\s+(\S+\s+)+pam_unix\.so\s+(\S+\s+)*remember=([56789]|1-9][0-9]+) -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/pam.d/common-password does not exist
Pattern: ^password\s+(\S+\s+)+pam_unix\.so\s+(\S+\s+)*remember=([56789]|1-9][0-9]+)
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.3.3_Ensure_password_reuse_is_limited"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.312-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.312-06:00"
                    start-time="2017-02-13T20:12:04.305-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/pam.d/common-password exists and matches pattern ^password\s+(\S+\s+)+pam_unix\.so\s+(\S+\s+)*remember=([56789]|1-9][0-9]+)"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10325"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10323"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1961">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/pam.d/common-password"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/pam.d"/>
                        <cis:evidence_item_pk_field name="filename" value="common-password"/>
                        <cis:evidence_item_pk_field name="pattern"
                                                    value="^password\s+(\S+\s+)+pam_unix\.so\s+(\S+\s+)*remember=([56789]|1-9][0-9]+)"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1291"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.3.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1291"/>
      </check>
   </complex-check>
</rule-result>
Pass

5.3.4 Ensure password hashing algorithm is SHA-512

Description:

The commands below change password encryption from md5 to sha512 (a much stronger hashing algorithm). All existing accounts will need to perform a password change to upgrade the stored hashes to the new algorithm.

The SHA-512 algorithm provides much stronger hashing than MD5, thus providing additional protection to the system by increasing the level of effort for an attacker to successfully determine passwords.

Note that these change only apply to accounts configured on the local system.

Edit the /etc/pam.d/common-password file to include the sha512 option for pam_unix.so as shown:

password [success=1 default=ignore] pam_unix.so sha512

Ensure at least one file named /etc/pam.d/common-password exists and matches pattern ^password\s+(\S+\s+)+pam_unix\.so\s+(\S+\s+)*sha512 -- More
CIS-CAT expected at least 1 matching text file content item to be collected, and found 1 item.
File: /etc/pam.d/common-password exists
Pattern: ^password\s+(\S+\s+)+pam_unix\.so\s+(\S+\s+)*sha512
Match Text: password [success=1 default=ignore] pam_unix.so obscure sha512

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.3.4_Ensure_password_hashing_algorithm_is_SHA-512"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.318-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.319-06:00"
                    start-time="2017-02-13T20:12:04.312-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/pam.d/common-password exists and matches pattern ^password\s+(\S+\s+)+pam_unix\.so\s+(\S+\s+)*sha512"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10326"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10324"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1962">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/pam.d/common-password"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/pam.d"/>
                        <cis:evidence_item_pk_field name="filename" value="common-password"/>
                        <cis:evidence_item_pk_field name="pattern" value="^password\s+(\S+\s+)+pam_unix\.so\s+(\S+\s+)*sha512"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text"
                                                    value="password [success=1 default=ignore] pam_unix.so obscure sha512"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1292"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.3.4.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1292"/>
      </check>
   </complex-check>
</rule-result>

5.4 User Accounts and Environment

This section provides guidance on setting up secure defaults for system and user accounts and their environment.

5.4.1 Set Shadow Password Suite Parameters

While a majority of the password control parameters have been moved to PAM, some parameters are still available through the shadow password suite. Any changes made to /etc/login.defs will only be applied if the usermod command is used. If user IDs are added a different way, use the chage command to effect changes to individual user IDs.

Fail

5.4.1.1 Ensure password expiration is 90 days or less

Description:

The PASS_MAX_DAYS parameter in /etc/login.defs allows an administrator to force passwords to expire once they reach a defined age. It is recommended that the PASS_MAX_DAYS parameter be set to less than or equal to 90 days.

The window of opportunity for an attacker to leverage compromised credentials or successfully compromise credentials via an online brute force attack is limited by the age of the password. Therefore, reducing the maximum age of a password also reduces an attacker's window of opportunity.

Set the PASS_MAX_DAYS parameter to 90 in /etc/login.defs:

PASS_MAX_DAYS 90

Modify user parameters for all users with a password set to match:

# chage --maxdays 90 <user>

All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/login.defs exists and matches pattern ^\s*PASS_MAX_DAYS\s+(90|[1-8][0-9]|[1-9])\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/login.defs does not exist
Pattern: ^\s*PASS_MAX_DAYS\s+(90|[1-8][0-9]|[1-9])\s*(\s+#.*)?$
Match Text: No match found
Linux Custom Object "Ensure no users with a Password have password expiration over 90 days" -- Less
Check: None May Pass
User: root
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa.
the Password Life (days) to be greater than 90 99999
User: daemon
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: bin
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: sys
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: sync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: games
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: man
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: lp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: mail
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: news
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: uucp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: www-data
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: backup
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: list
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: irc
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: gnats
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: nobody
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: syslog
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: messagebus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: landscape
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: puntawo2
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0
the Password Life (days) to be greater than 90 99999
User: systemd-timesync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: systemd-network
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: systemd-resolve
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: systemd-bus-proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: uuidd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Password Life (days) to be greater than 90 99999
User: _apt
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: Carol
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV..
the Password Life (days) to be greater than 90 99999
User: Dave
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10
the Password Life (days) to be greater than 90 99999
User: Ellen
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/
the Password Life (days) to be greater than 90 99999
User: Gus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1.
the Password Life (days) to be greater than 90 99999
User: Alice
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq.
the Password Life (days) to be greater than 90 99999
User: Bob
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/
the Password Life (days) to be greater than 90 99999
User: boss
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Password Life (days) to be greater than 90 99999
User: lightdm
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: whoopsie
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: avahi-autoipd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: avahi
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: dnsmasq
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: colord
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: speech-dispatcher
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Password Life (days) to be greater than 90 99999
User: hplip
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: kernoops
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: pulse
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: rtkit
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: saned
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999
User: usbmux
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Life (days) to be greater than 90 99999

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.1_Ensure_password_expiration_is_90_days_or_less"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.393-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.393-06:00"
                    start-time="2017-02-13T20:12:04.319-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/login.defs exists and matches pattern ^\s*PASS_MAX_DAYS\s+(90|[1-8][0-9]|[1-9])\s*(\s+#.*)?$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10327"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10325"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="1963">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/login.defs"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="login.defs"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*PASS_MAX_DAYS\s+(90|[1-8][0-9]|[1-9])\s*(\s+#.*)?$"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="any_exist"
                               comment="Linux Custom Object &#34;Ensure no users with a Password have password expiration over 90 days&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10328"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10326"
                               type="shadow_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10152">
                  <cis:evidence_item itemref="1965">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="root"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1966">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="daemon"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1967">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="bin"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1968">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sys"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1969">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1970">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="games"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1971">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="man"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1972">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1973">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="mail"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1974">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="news"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1975">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uucp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1976">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1977">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="www-data"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1978">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="backup"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1979">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="list"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1980">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="irc"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1981">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="gnats"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1982">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="nobody"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1983">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="syslog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1984">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="messagebus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1985">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="landscape"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1986">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="puntawo2"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1987">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-timesync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1988">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-network"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1989">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-resolve"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1990">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-bus-proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1991">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uuidd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1992">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="_apt"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1993">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Carol"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV.."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1994">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Dave"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1995">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Ellen"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1996">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Gus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1997">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Alice"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1998">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Bob"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1999">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="boss"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2000">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lightdm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2001">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="whoopsie"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2002">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi-autoipd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2003">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2004">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="dnsmasq"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2005">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="colord"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2006">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="speech-dispatcher"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2007">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="hplip"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2008">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="kernoops"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2009">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="pulse"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2010">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="rtkit"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2011">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="saned"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2012">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="usbmux"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="99999" dt="int" ev="90" name="chg_req" op="greater than" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1293"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.4.1.1.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1293"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1294"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.4.1.2 Ensure minimum days between password changes is 7 or more

Description:

The PASS_MIN_DAYS parameter in /etc/login.defs allows an administrator to prevent users from changing their password until a minimum number of days have passed since the last time the user changed their password. It is recommended that PASS_MIN_DAYS parameter be set to 7 or more days.

By restricting the frequency of password changes, an administrator can prevent users from repeatedly changing their password in an attempt to circumvent password reuse controls.

Set the PASS_MIN_DAYS parameter to 7 in /etc/login.defs:

PASS_MIN_DAYS 7

Modify user parameters for all users with a password set to match:

# chage --mindays 7 <user>

All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/login.defs exists and matches pattern ^\s*PASS_MIN_DAYS\s+([789]|[1-9][0-9]+)\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/login.defs does not exist
Pattern: ^\s*PASS_MIN_DAYS\s+([789]|[1-9][0-9]+)\s*(\s+#.*)?$
Match Text: No match found
Linux Custom Object "Ensure no users with a Password have password change minimum under 7 days" -- Less
Check: None May Pass
User: root
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa.
the Password Minimum Age to be less than 7 0
User: daemon
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: bin
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: sys
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: sync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: games
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: man
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: lp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: mail
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: news
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: uucp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: www-data
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: backup
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: list
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: irc
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: gnats
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: nobody
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: syslog
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: messagebus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: landscape
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: puntawo2
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0
the Password Minimum Age to be less than 7 0
User: systemd-timesync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: systemd-network
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: systemd-resolve
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: systemd-bus-proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: uuidd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Password Minimum Age to be less than 7 0
User: _apt
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: Carol
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV..
the Password Minimum Age to be less than 7 0
User: Dave
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10
the Password Minimum Age to be less than 7 0
User: Ellen
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/
the Password Minimum Age to be less than 7 0
User: Gus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1.
the Password Minimum Age to be less than 7 0
User: Alice
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq.
the Password Minimum Age to be less than 7 0
User: Bob
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/
the Password Minimum Age to be less than 7 0
User: boss
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Password Minimum Age to be less than 7 0
User: lightdm
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: whoopsie
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: avahi-autoipd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: avahi
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: dnsmasq
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: colord
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: speech-dispatcher
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Password Minimum Age to be less than 7 0
User: hplip
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: kernoops
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: pulse
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: rtkit
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: saned
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0
User: usbmux
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Password Minimum Age to be less than 7 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.2_Ensure_minimum_days_between_password_changes_is_7_or_more"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.448-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.448-06:00"
                    start-time="2017-02-13T20:12:04.412-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/login.defs exists and matches pattern ^\s*PASS_MIN_DAYS\s+([789]|[1-9][0-9]+)\s*(\s+#.*)?$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10329"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10327"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2013">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/login.defs"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="login.defs"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*PASS_MIN_DAYS\s+([789]|[1-9][0-9]+)\s*(\s+#.*)?$"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="any_exist"
                               comment="Linux Custom Object &#34;Ensure no users with a Password have password change minimum under 7 days&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10330"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10328"
                               type="shadow_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10153">
                  <cis:evidence_item itemref="1965">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="root"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1966">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="daemon"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1967">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="bin"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1968">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sys"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1969">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1970">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="games"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1971">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="man"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1972">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1973">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="mail"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1974">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="news"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1975">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uucp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1976">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1977">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="www-data"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1978">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="backup"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1979">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="list"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1980">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="irc"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1981">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="gnats"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1982">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="nobody"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1983">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="syslog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1984">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="messagebus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1985">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="landscape"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1986">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="puntawo2"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1987">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-timesync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1988">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-network"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1989">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-resolve"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1990">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-bus-proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1991">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uuidd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1992">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="_apt"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1993">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Carol"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV.."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1994">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Dave"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1995">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Ellen"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1996">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Gus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1997">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Alice"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1998">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Bob"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1999">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="boss"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2000">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lightdm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2001">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="whoopsie"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2002">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi-autoipd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2003">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2004">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="dnsmasq"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2005">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="colord"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2006">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="speech-dispatcher"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2007">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="hplip"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2008">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="kernoops"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2009">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="pulse"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2010">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="rtkit"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2011">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="saned"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2012">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="usbmux"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="0" dt="int" ev="7" name="chg_allow" op="less than" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1295"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.4.1.2.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1295"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1296"/>
      </check>
   </complex-check>
</rule-result>
Pass

5.4.1.3 Ensure password expiration warning days is 7 or more

Description:

The PASS_WARN_AGE parameter in /etc/login.defs allows an administrator to notify users that their password will expire in a defined number of days. It is recommended that the PASS_WARN_AGE parameter be set to 7 or more days.

Providing an advance warning that a password will be expiring gives users time to think of a secure password. Users caught unaware may choose a simple password or write it down where it may be discovered.

Set the PASS_WARN_AGE parameter to 7 in /etc/login.defs:

PASS_WARN_AGE 7

Modify user parameters for all users with a password set to match:

# chage --warndays 7 <user>

All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/login.defs exists and matches pattern ^\s*PASS_WARN_AGE\s+([789]|[1-9][0-9]+)\s*(\s+#.*)?$ -- More
CIS-CAT expected at least 1 matching text file content item to be collected, and found 1 item.
File: /etc/login.defs exists
Pattern: ^\s*PASS_WARN_AGE\s+([789]|[1-9][0-9]+)\s*(\s+#.*)?$
Match Text: PASS_WARN_AGE 7 #
Linux Custom Object "Ensure no users with a Password have password expiration warning under 7 days" -- More
Check: None May Pass
User: root
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa.
the Expiration Warning to be less than 7 7
User: daemon
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: bin
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: sys
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: sync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: games
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: man
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: lp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: mail
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: news
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: uucp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: www-data
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: backup
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: list
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: irc
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: gnats
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: nobody
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: syslog
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: messagebus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: landscape
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: puntawo2
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0
the Expiration Warning to be less than 7 7
User: systemd-timesync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: systemd-network
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: systemd-resolve
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: systemd-bus-proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: uuidd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Expiration Warning to be less than 7 7
User: _apt
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: Carol
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV..
the Expiration Warning to be less than 7 7
User: Dave
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10
the Expiration Warning to be less than 7 7
User: Ellen
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/
the Expiration Warning to be less than 7 7
User: Gus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1.
the Expiration Warning to be less than 7 7
User: Alice
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq.
the Expiration Warning to be less than 7 7
User: Bob
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/
the Expiration Warning to be less than 7 7
User: boss
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Expiration Warning to be less than 7 7
User: lightdm
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: whoopsie
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: avahi-autoipd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: avahi
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: dnsmasq
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: colord
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: speech-dispatcher
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Expiration Warning to be less than 7 7
User: hplip
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: kernoops
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: pulse
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: rtkit
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: saned
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7
User: usbmux
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Expiration Warning to be less than 7 7

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.3_Ensure_password_expiration_warning_days_is_7_or_more"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.484-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.485-06:00"
                    start-time="2017-02-13T20:12:04.464-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/login.defs exists and matches pattern ^\s*PASS_WARN_AGE\s+([789]|[1-9][0-9]+)\s*(\s+#.*)?$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10331"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10329"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2014">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/login.defs"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="login.defs"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*PASS_WARN_AGE\s+([789]|[1-9][0-9]+)\s*(\s+#.*)?$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="PASS_WARN_AGE 7  #"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="any_exist"
                               comment="Linux Custom Object &#34;Ensure no users with a Password have password expiration warning under 7 days&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10332"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10330"
                               type="shadow_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10154">
                  <cis:evidence_item itemref="1965">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="root"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1966">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="daemon"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1967">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="bin"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1968">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sys"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1969">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1970">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="games"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1971">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="man"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1972">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1973">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="mail"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1974">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="news"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1975">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uucp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1976">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1977">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="www-data"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1978">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="backup"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1979">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="list"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1980">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="irc"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1981">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="gnats"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1982">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="nobody"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1983">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="syslog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1984">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="messagebus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1985">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="landscape"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1986">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="puntawo2"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1987">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-timesync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1988">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-network"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1989">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-resolve"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1990">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-bus-proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1991">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uuidd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1992">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="_apt"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1993">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Carol"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV.."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1994">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Dave"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1995">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Ellen"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1996">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Gus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1997">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Alice"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1998">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Bob"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1999">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="boss"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2000">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lightdm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2001">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="whoopsie"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2002">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi-autoipd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2003">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2004">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="dnsmasq"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2005">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="colord"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2006">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="speech-dispatcher"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2007">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="hplip"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2008">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="kernoops"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2009">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="pulse"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2010">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="rtkit"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2011">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="saned"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2012">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="usbmux"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="7" dt="int" ev="7" name="exp_warn" op="less than" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1297"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.4.1.3.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1297"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1298"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.4.1.4 Ensure inactive password lock is 30 days or less

Description:

User accounts that have been inactive for over a given period of time can be automatically disabled. It is recommended that accounts that are inactive for 30 days after password expiration be disabled.

Inactive accounts pose a threat to system security since the users are not logging in to notice failed login attempts or other anomalies.

Run the following command to set the default password inactivity period to 30 days:

# useradd -D -f 30

Modify user parameters for all users with a password set to match:

# chage --inactive 30 <user>

All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/default/useradd exists and matches pattern ^\s*INACTIVE\s*=\s*(30|[1-2][0-9]|[1-9])\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/default/useradd does not exist
Pattern: ^\s*INACTIVE\s*=\s*(30|[1-2][0-9]|[1-9])\s*(\s+#.*)?$
Match Text: No match found
Linux Custom Object "Ensure no users with a Password have password inactivation over 30 days" -- Less
Check: None May Pass
User: root
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa.
the Inactivity Days to be greater than 30
User: daemon
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: bin
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: sys
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: sync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: games
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: man
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: lp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: mail
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: news
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: uucp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: www-data
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: backup
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: list
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: irc
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: gnats
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: nobody
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: syslog
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: messagebus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: landscape
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: puntawo2
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0
the Inactivity Days to be greater than 30
User: systemd-timesync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: systemd-network
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: systemd-resolve
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: systemd-bus-proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: uuidd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Inactivity Days to be greater than 30
User: _apt
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: Carol
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV..
the Inactivity Days to be greater than 30
User: Dave
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10
the Inactivity Days to be greater than 30
User: Ellen
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/
the Inactivity Days to be greater than 30
User: Gus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1.
the Inactivity Days to be greater than 30
User: Alice
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq.
the Inactivity Days to be greater than 30
User: Bob
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] $6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/
the Inactivity Days to be greater than 30
User: boss
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Inactivity Days to be greater than 30
User: lightdm
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: whoopsie
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: avahi-autoipd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: avahi
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: dnsmasq
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: colord
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: speech-dispatcher
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] !
the Inactivity Days to be greater than 30
User: hplip
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: kernoops
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: pulse
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: rtkit
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: saned
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30
User: usbmux
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression ^[^!*] *
the Inactivity Days to be greater than 30

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.4.1.4_Ensure_inactive_password_lock_is_30_days_or_less"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.540-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.540-06:00"
                    start-time="2017-02-13T20:12:04.497-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/default/useradd exists and matches pattern ^\s*INACTIVE\s*=\s*(30|[1-2][0-9]|[1-9])\s*(\s+#.*)?$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10333"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10331"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2015">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/default/useradd"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/default"/>
                        <cis:evidence_item_pk_field name="filename" value="useradd"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*INACTIVE\s*=\s*(30|[1-2][0-9]|[1-9])\s*(\s+#.*)?$"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
            <cis:evidence_test check="none satisfy" check_existence="any_exist"
                               comment="Linux Custom Object &#34;Ensure no users with a Password have password inactivation over 30 days&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10334"
                               result="error"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10332"
                               type="shadow_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10155">
                  <cis:evidence_item itemref="1965">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="root"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1966">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="daemon"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1967">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="bin"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1968">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sys"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1969">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1970">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="games"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1971">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="man"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1972">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1973">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="mail"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1974">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="news"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1975">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uucp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1976">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1977">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="www-data"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1978">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="backup"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1979">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="list"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1980">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="irc"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1981">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="gnats"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1982">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="nobody"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1983">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="syslog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1984">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="messagebus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1985">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="landscape"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1986">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="puntawo2"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1987">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-timesync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1988">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-network"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1989">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-resolve"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1990">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-bus-proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1991">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uuidd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1992">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="_apt"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1993">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Carol"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV.."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1994">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Dave"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1995">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Ellen"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1996">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Gus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1997">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Alice"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq."
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1998">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Bob"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/"
                                         dt="string"
                                         ev="^[^!*]"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1999">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="boss"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2000">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lightdm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2001">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="whoopsie"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2002">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi-autoipd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2003">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2004">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="dnsmasq"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2005">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="colord"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2006">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="speech-dispatcher"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2007">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="hplip"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2008">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="kernoops"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2009">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="pulse"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2010">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="rtkit"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2011">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="saned"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2012">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="usbmux"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev="^[^!*]" name="password" op="pattern match"
                                         result="false"/>
                     <cis:evidence_field cv="" dt="int" ev="30" name="exp_inact" op="greater than" result="error"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1299"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.4.1.4.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1299"/>
      </check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1300"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.4.2 Ensure system accounts are non-login

Description:

There are a number of accounts provided with Ubuntu that are used to manage applications and are not intended to provide an interactive shell.

It is important to make sure that accounts that are not being used by regular users are prevented from being used to provide an interactive shell. By default, Ubuntu sets the password field for these accounts to an invalid string, but it is also recommended that the shell field in the password file be set to /sbin/nologin. This prevents the account from potentially being used to run any commands.

Set the shell for any accounts returned by the audit script to /usr/sbin/nologin:

# usermod -s /usr/sbin/nologin <user>

The following script will automatically set all user shells required to /usr/sbin/nologin and lock the sync, shutdown, and halt users:

#!/bin/bash

for user in `awk -F: '($3 < 1000) {print $1 }' /etc/passwd`; do
if [ $user != "root" ]; then
usermod -L $user
if [ $user != "sync" ] && [ $user != "shutdown" ] && [ $user != "halt" ]; then
usermod -s /usr/sbin/nologin $user
fi
fi
done

Linux Custom Object "System Accounts Disabled" -- Less
Check: None May Pass
User: daemon
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 1
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: bin
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 2
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: sys
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 3
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: games
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 5
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: man
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 6
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: lp
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 7
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: mail
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 8
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: news
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 9
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: uucp
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 10
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: proxy
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 13
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: www-data
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 33
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: backup
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 34
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: list
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 38
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: irc
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 39
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: gnats
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 41
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: nobody
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 65534
the Login Shell to not be set to /usr/sbin/nologin /usr/sbin/nologin
User: syslog
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 101
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: messagebus
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 102
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: landscape
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 103
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: puntawo2
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 1000
the Login Shell to not be set to /usr/sbin/nologin /bin/bash
User: systemd-timesync
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 104
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: systemd-network
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 105
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: systemd-resolve
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 106
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: systemd-bus-proxy
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 107
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: uuidd
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 100
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: _apt
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 108
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: lightdm
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 109
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: whoopsie
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 110
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: avahi-autoipd
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 111
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: avahi
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 112
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: dnsmasq
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 113
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: colord
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 114
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: speech-dispatcher
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 115
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: hplip
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 116
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: kernoops
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 117
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: pulse
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 118
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: rtkit
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 119
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: saned
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 120
the Login Shell to not be set to /usr/sbin/nologin /bin/false
User: usbmux
CIS-CAT Expected... CIS-CAT Collected...
the User ID to be less than 1000 121
the Login Shell to not be set to /usr/sbin/nologin /bin/false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.4.2_Ensure_system_accounts_are_non-login"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.930-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.930-06:00"
                    start-time="2017-02-13T20:12:04.553-06:00">
         <cis:and>
            <cis:evidence_test check="none satisfy" check_existence="at_least_one_exists"
                               comment="Linux Custom Object &#34;System Accounts Disabled&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10335"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10333"
                               type="password_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10156">
                  <cis:evidence_item itemref="2017">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="daemon"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="1" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2018">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="bin"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="2" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2019">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sys"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="3" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2020">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="games"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="5" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2021">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="man"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="6" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2022">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="7" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2023">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="mail"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="8" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2024">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="news"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="9" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2025">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uucp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="10" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2026">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="13" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2027">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="www-data"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="33" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2028">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="backup"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="34" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2029">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="list"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="38" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2030">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="irc"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="39" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2031">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="gnats"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="41" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2032">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="nobody"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="65534" dt="int" ev="1000" name="user_id" op="less than" result="false"/>
                     <cis:evidence_field cv="/usr/sbin/nologin" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2033">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="syslog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="101" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2034">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="messagebus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="102" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2035">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="landscape"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="103" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2036">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="puntawo2"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="1000" dt="int" ev="1000" name="user_id" op="less than" result="false"/>
                     <cis:evidence_field cv="/bin/bash" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2037">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-timesync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="104" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2038">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-network"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="105" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2039">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-resolve"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="106" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2040">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-bus-proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="107" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2041">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uuidd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="100" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2042">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="_apt"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="108" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2043">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lightdm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="109" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2044">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="whoopsie"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="110" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2045">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi-autoipd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="111" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2046">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="112" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2047">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="dnsmasq"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="113" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2048">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="colord"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="114" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2049">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="speech-dispatcher"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="115" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2050">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="hplip"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="116" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2051">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="kernoops"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="117" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2052">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="pulse"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="118" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2053">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="rtkit"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="119" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2054">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="saned"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="120" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2055">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="usbmux"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="121" dt="int" ev="1000" name="user_id" op="less than" result="true"/>
                     <cis:evidence_field cv="/bin/false" dt="string" ev="/usr/sbin/nologin" name="login_shell"
                                         op="not equal"
                                         result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1301"/>
      </check>
   </complex-check>
</rule-result>
Pass

5.4.3 Ensure default group for the root account is GID 0

Description:

The usermod command can be used to specify which group the root user belongs to. This affects permissions of files that are created by the root user.

Using GID 0 for the root account helps prevent root -owned files from accidentally becoming accessible to non-privileged users.

Run the following command to set the root user default group to GID 0:

# usermod -g 0 root

Linux Custom Object "Default Group Set For root User" -- More
Check: All Must Pass
User: root
CIS-CAT Expected... CIS-CAT Collected...
the Group ID to be set to 0 0

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.4.3_Ensure_default_group_for_the_root_account_is_GID_0"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.962-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.962-06:00"
                    start-time="2017-02-13T20:12:04.940-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Linux Custom Object &#34;Default Group Set For root User&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10336"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10334"
                               type="password_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10157">
                  <cis:evidence_item itemref="2056">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="root"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1302"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.4.4 Ensure default user umask is 027 or more restrictive

Description:

The default umask determines the permissions of files created by users. The user creating the file has the discretion of making their files and directories readable by others via the chmod command. Users who wish to allow their files and directories to be readable by others by default may choose a different default umask by inserting the umask command into the standard shell configuration files (.profile, .bashrc, etc.) in their home directories.

Setting a very secure default value for umask ensures that users make a conscious choice about their file permissions. A default umask setting of 077 causes files and directories created by users to not be readable by any other user on the system. A umask of 027 would make files and directories readable by users in the same Unix group, while a umask of 022 would make files readable by every user on the system.

Edit the /etc/bash.bashrc and /etc/profile files (and the appropriate files for any other shell supported on your system) and add or edit any umask parameters as follows:

umask 027

All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/profile exists and does not match pattern ^\s*umask\s+[01234567](0[7654321]|[7654321][654321])\s*(\s+#.*)?$ -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/profile does not exist
Pattern: ^\s*umask\s+[01234567](0[7654321]|[7654321][654321])\s*(\s+#.*)?$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/profile exists and matches pattern ^\s*umask\s+[01234567][2367]7\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/profile does not exist
Pattern: ^\s*umask\s+[01234567][2367]7\s*(\s+#.*)?$
Match Text: No match found
All of the following tests or sub-groups must pass:
Ensure at least one file named /etc/bash.bashrc exists and matches pattern ^\s*umask\s+[01234567][2367]7\s*(\s+#.*)?$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/bash.bashrc does not exist
Pattern: ^\s*umask\s+[01234567][2367]7\s*(\s+#.*)?$
Match Text: No match found
Ensure at least one file named /etc/bash.bashrc exists and does not match pattern ^\s*umask\s+[01234567](0[7654321]|[7654321][654321])\s*(\s+#.*)?$ -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/bash.bashrc does not exist
Pattern: ^\s*umask\s+[01234567](0[7654321]|[7654321][654321])\s*(\s+#.*)?$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.4.4_Ensure_default_user_umask_is_027_or_more_restrictive"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.976-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.976-06:00"
                    start-time="2017-02-13T20:12:04.962-06:00">
         <cis:and>
            <cis:and>
               <cis:and>
                  <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                     comment="Ensure at least one file named /etc/bash.bashrc exists and matches pattern ^\s*umask\s+[01234567][2367]7\s*(\s+#.*)?$"
                                     negated="false"
                                     ns="independent"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10337"
                                     result="false"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10335"
                                     type="textfilecontent54_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="2057">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/bash.bashrc"/>
                              <cis:evidence_item_pk_field name="path" value="/etc"/>
                              <cis:evidence_item_pk_field name="filename" value="bash.bashrc"/>
                              <cis:evidence_item_pk_field name="pattern" value="^\s*umask\s+[01234567][2367]7\s*(\s+#.*)?$"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
                  <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                     comment="Ensure at least one file named /etc/bash.bashrc exists and does not match pattern ^\s*umask\s+[01234567](0[7654321]|[7654321][654321])\s*(\s+#.*)?$"
                                     negated="true"
                                     ns="independent"
                                     objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10338"
                                     result="true"
                                     testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10336"
                                     type="textfilecontent54_test">
                     <cis:evidence_object>
                        <cis:evidence_item itemref="2058">
                           <cis:evidence_item_pk status="does not exist">
                              <cis:evidence_item_pk_field name="filepath" value="/etc/bash.bashrc"/>
                              <cis:evidence_item_pk_field name="path" value="/etc"/>
                              <cis:evidence_item_pk_field name="filename" value="bash.bashrc"/>
                              <cis:evidence_item_pk_field name="pattern"
                                                          value="^\s*umask\s+[01234567](0[7654321]|[7654321][654321])\s*(\s+#.*)?$"/>
                           </cis:evidence_item_pk>
                        </cis:evidence_item>
                     </cis:evidence_object>
                  </cis:evidence_test>
               </cis:and>
               <cis:evidence_test check="all" check_existence="at_least_one_exists"
                                  comment="Ensure at least one file named /etc/profile exists and matches pattern ^\s*umask\s+[01234567][2367]7\s*(\s+#.*)?$"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10339"
                                  result="false"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10337"
                                  type="textfilecontent54_test">
                  <cis:evidence_object>
                     <cis:evidence_item itemref="2059">
                        <cis:evidence_item_pk status="does not exist">
                           <cis:evidence_item_pk_field name="filepath" value="/etc/profile"/>
                           <cis:evidence_item_pk_field name="path" value="/etc"/>
                           <cis:evidence_item_pk_field name="filename" value="profile"/>
                           <cis:evidence_item_pk_field name="pattern" value="^\s*umask\s+[01234567][2367]7\s*(\s+#.*)?$"/>
                        </cis:evidence_item_pk>
                     </cis:evidence_item>
                  </cis:evidence_object>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/profile exists and does not match pattern ^\s*umask\s+[01234567](0[7654321]|[7654321][654321])\s*(\s+#.*)?$"
                               negated="true"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10340"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10338"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2060">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/profile"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="profile"/>
                        <cis:evidence_item_pk_field name="pattern"
                                                    value="^\s*umask\s+[01234567](0[7654321]|[7654321][654321])\s*(\s+#.*)?$"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <complex-check operator="AND">
         <complex-check operator="AND">
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1303"
                             value-id="xccdf_org.cisecurity.benchmarks_value_5.4.4.1_var"/>
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1303"/>
            </check>
            <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
               <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                                  name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1304"/>
            </check>
         </complex-check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1305"
                          value-id="xccdf_org.cisecurity.benchmarks_value_5.4.4.3_var"/>
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1305"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1306"/>
      </check>
   </complex-check>
</rule-result>
Fail

5.6 Ensure access to the su command is restricted

Description:

The su command allows a user to run a command or shell as another user. The program has been superseded by sudo, which allows for more granular control over privileged access. Normally, the su command can be executed by any user. By uncommenting the pam_wheel.so statement in /etc/pam.d/su, the su command will only allow users in the wheel group to execute su.

Restricting the use of su, and using sudo in its place, provides system administrators better control of the escalation of user privileges to execute privileged commands. The sudo utility also provides a better logging and audit mechanism, as it can log each command executed via sudo, whereas su can only record that a user executed the su program.

Add the following line to the /etc/pam.d/su file:

auth required pam_wheel.so use_uid

Create a comma separated list of users in the wheel statement in the /etc/group file:

wheel:x:10:root,<user list>

Ensure at least one file named /etc/pam.d/su exists and matches pattern ^\s*auth\s+required\s+pam_wheel.so\s+use_uid\s*$ -- Less
CIS-CAT expected at least 1 matching text file content item to be collected, and found 0 items.
File: /etc/pam.d/su does not exist
Pattern: ^\s*auth\s+required\s+pam_wheel.so\s+use_uid\s*$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_5.6_Ensure_access_to_the_su_command_is_restricted"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:04.986-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:04.986-06:00"
                    start-time="2017-02-13T20:12:04.977-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/pam.d/su exists and matches pattern ^\s*auth\s+required\s+pam_wheel.so\s+use_uid\s*$"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10341"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10339"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2061">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/pam.d/su"/>
                        <cis:evidence_item_pk_field name="path" value="/etc/pam.d"/>
                        <cis:evidence_item_pk_field name="filename" value="su"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\s*auth\s+required\s+pam_wheel.so\s+use_uid\s*$"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1307"
                       value-id="xccdf_org.cisecurity.benchmarks_value_5.6.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1307"/>
      </check>
   </complex-check>
</rule-result>

6 System Maintenance

Recommendations in this section are intended as maintenance and are intended to be checked on a frequent basis to ensure system stability. Many recommendations do not have quick remediations and require investigation into the cause and best fix available and may indicate an attempted breach of system security.

6.1 System File Permissions

This section provides guidance on securing aspects of system files and directories.

Pass

6.1.2 Ensure permissions on /etc/passwd are configured

Description:

The /etc/passwd file contains user account information that is used by many system utilities and therefore must be readable for these utilities to operate.

It is critical to ensure that the /etc/passwd file is protected from unauthorized write access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.

Run the following command to set permissions on /etc/passwd:

# chown root:root /etc/passwd
# chmod 644 /etc/passwd

Ensure at least one file named /etc/passwd exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky -- More
File: /etc/passwd
CIS-CAT Expected... CIS-CAT Collected...
the file's Owner Write to be set to true true
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Owner Read to be set to true true
the file's Other Read to be set to true true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to true true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.2_Ensure_permissions_on_etcpasswd_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.093-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:11.093-06:00"
                    start-time="2017-02-13T20:12:11.064-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/passwd exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10342"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10340"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10158">
                  <cis:evidence_item itemref="2062">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/passwd"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="passwd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uwrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uread" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1308"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.1.3 Ensure permissions on /etc/shadow are configured

Description:

The /etc/shadow file is used to store the information about user accounts that is critical to the security of those accounts, such as the hashed password and other security information.

If attackers can gain read access to the /etc/shadow file, they can easily run a password cracking program against the hashed password to break it. Other security information that is stored in the /etc/shadow file (such as expiration) could also be useful to subvert the user accounts.

Run the one following commands to set permissions on /etc/shadow:

# chown root:shadow /etc/shadow
# chmod o-rwx,g-wx /etc/shadow

Ensure at least one file named /etc/shadow exists and is owned by 0:42 and does not have permissions --x-wxrwx SUID SGID sticky -- More
File: /etc/shadow
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Group ID to be set to 42 42
the file's User ID to be set to 0 0
the file's Owner Execute to be set to false false
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.3_Ensure_permissions_on_etcshadow_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.117-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    definition_id="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1309"
                    definition_negate="false">
         <cis:and negated="false" result="true">
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/shadow exists and is owned by 0:42 and does not have permissions --x-wxrwx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10343"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10341"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10159">
                  <cis:evidence_item itemref="2063">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/shadow"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="shadow"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="42" dt="int" ev="42" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
      <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                         name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1309"/>
   </check>
</rule-result>
Pass

6.1.4 Ensure permissions on /etc/group are configured

Description:

The /etc/group file contains a list of all the valid groups defined in the system. The command below allows read/write access for root and read access for everyone else.

The /etc/group file needs to be protected from unauthorized changes by non-privileged users, but needs to be readable as this information is used with many non-privileged programs.

Run the following command to set permissions on /etc/group:

# chown root:root /etc/group
# chmod 644 /etc/group

Ensure at least one file named /etc/group exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky -- More
File: /etc/group
CIS-CAT Expected... CIS-CAT Collected...
the file's Owner Write to be set to true true
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Owner Read to be set to true true
the file's Other Read to be set to true true
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to true true
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.4_Ensure_permissions_on_etcgroup_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.143-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:11.144-06:00"
                    start-time="2017-02-13T20:12:11.118-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/group exists and is owned by 0:0 and has permissions rw-r--r-- and does not have permissions --x-wx-wx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10344"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10342"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10160">
                  <cis:evidence_item itemref="2064">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uwrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="uread" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="true" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1310"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.1.5 Ensure permissions on /etc/gshadow are configured

Description:

The /etc/gshadow file is used to store the information about groups that is critical to the security of those accounts, such as the hashed password and other security information.

If attackers can gain read access to the /etc/gshadow file, they can easily run a password cracking program against the hashed password to break it. Other security information that is stored in the /etc/gshadow file (such as group administrators) could also be useful to subvert the group.

Run the the following commands to set permissions on /etc/gshadow:

# chown root:shadow /etc/gshadow
# chmod o-rwx,g-rw /etc/gshadow

Ensure at least one file named /etc/gshadow exists and is owned by 0:42 and does not have permissions --x-wxrwx SUID SGID sticky -- More
File: /etc/gshadow
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Other Read to be set to false false
the file's Group ID to be set to 42 42
the file's User ID to be set to 0 0
the file's Owner Execute to be set to false false
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.5_Ensure_permissions_on_etcgshadow_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.164-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    definition_id="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1311"
                    definition_negate="false">
         <cis:and negated="false" result="true">
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/gshadow exists and is owned by 0:42 and does not have permissions --x-wxrwx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10345"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10343"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10161">
                  <cis:evidence_item itemref="2065">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/gshadow"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="gshadow"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="42" dt="int" ev="42" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
      <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                         name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1311"/>
   </check>
</rule-result>
Pass

6.1.6 Ensure permissions on /etc/passwd- are configured

Description:

The /etc/passwd- file contains backup user account information.

It is critical to ensure that the /etc/passwd- file is protected from unauthorized access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.

Run the following command to set permissions on /etc/passwd-:

# chown root:root /etc/passwd-
# chmod 600 /etc/passwd-

Ensure at least one file named /etc/passwd- exists and is owned by 0:0 and does not have permissions --xrwxrwx SUID SGID sticky -- More
File: /etc/passwd-
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Other Read to be set to false false
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to false false
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.6_Ensure_permissions_on_etcpasswd-_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.195-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:11.195-06:00"
                    start-time="2017-02-13T20:12:11.166-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/passwd- exists and is owned by 0:0 and does not have permissions --xrwxrwx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10346"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10344"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10162">
                  <cis:evidence_item itemref="2066">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/passwd-"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="passwd-"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1312"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.1.7 Ensure permissions on /etc/shadow- are configured

Description:

The /etc/shadow- file is used to store backup information about user accounts that is critical to the security of those accounts, such as the hashed password and other security information.

It is critical to ensure that the /etc/shadow- file is protected from unauthorized access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.

Run the following command to set permissions on /etc/shadow-:

# chown root:root /etc/shadow-
# chmod 600 /etc/shadow-

Ensure at least one file named /etc/shadow- exists and is owned by 0:0 and does not have permissions --xrwxrwx SUID SGID sticky -- More
File: /etc/shadow-
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Other Read to be set to false false
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to false false
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.7_Ensure_permissions_on_etcshadow-_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.231-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:11.232-06:00"
                    start-time="2017-02-13T20:12:11.195-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/shadow- exists and is owned by 0:0 and does not have permissions --xrwxrwx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10347"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10345"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10163">
                  <cis:evidence_item itemref="2067">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/shadow-"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="shadow-"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1313"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.1.8 Ensure permissions on /etc/group- are configured

Description:

The /etc/group- file contains a backup list of all the valid groups defined in the system.

It is critical to ensure that the /etc/group- file is protected from unauthorized access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.

Run the following command to set permissions on /etc/group-:

# chown root:root /etc/group-
# chmod 600 /etc/group-

Ensure at least one file named /etc/group- exists and is owned by 0:0 and does not have permissions --xrwxrwx SUID SGID sticky -- More
File: /etc/group-
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Other Read to be set to false false
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to false false
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.8_Ensure_permissions_on_etcgroup-_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.260-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:11.260-06:00"
                    start-time="2017-02-13T20:12:11.232-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/group- exists and is owned by 0:0 and does not have permissions --xrwxrwx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10348"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10346"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10164">
                  <cis:evidence_item itemref="2068">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group-"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group-"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1314"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.1.9 Ensure permissions on /etc/gshadow- are configured

Description:

The /etc/gshadow- file is used to store backup information about groups that is critical to the security of those accounts, such as the hashed password and other security information.

It is critical to ensure that the /etc/gshadow- file is protected from unauthorized access. Although it is protected by default, the file permissions could be changed either inadvertently or through malicious actions.

Run the following command to set permissions on /etc/gshadow-:

# chown root:root /etc/gshadow-
# chmod 600 /etc/gshadow-

Ensure at least one file named /etc/gshadow- exists and is owned by 0:0 and does not have permissions --xrwxrwx SUID SGID sticky -- More
File: /etc/gshadow-
CIS-CAT Expected... CIS-CAT Collected...
the file's Group Execute to be set to false false
the file's Owner Execute to be set to false false
the file's SUID to be set to false false
the file's Other Execute to be set to false false
the file's Other Read to be set to false false
the file's Group ID to be set to 0 0
the file's User ID to be set to 0 0
the file's Sticky Bit to be set to false false
the file's SGID to be set to false false
the file's Other Write to be set to false false
the file's Group Read to be set to false false
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.9_Ensure_permissions_on_etcgshadow-_are_configured"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.283-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:11.283-06:00"
                    start-time="2017-02-13T20:12:11.260-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/gshadow- exists and is owned by 0:0 and does not have permissions --xrwxrwx SUID SGID sticky"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10349"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10347"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10165">
                  <cis:evidence_item itemref="2069">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/gshadow-"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="gshadow-"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="uexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="suid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="group_id" op="equals" result="true"/>
                     <cis:evidence_field cv="0" dt="int" ev="0" name="user_id" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sticky" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="sgid" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1315"/>
      </check>
   </complex-check>
</rule-result>
Fail

6.1.10 Ensure no world writable files exist

Description:

Unix-based systems support variable settings to control access to files. World writable files are the least secure. See the chmod(2) man page for more information.

Data in world-writable files can be modified and compromised by any user on the system. World writable files may also indicate an incorrectly written script or program that could potentially be the cause of a larger compromise to the system's integrity.

Removing write access for the "other" category (chmod o-w <filename> ) is advisable, but always consult relevant vendor documentation to avoid breaking any application dependencies on a given file.

Ensure no world writable files exist -- Less
Script: sce/world_writable_files.sh
Standard Output:
World-Writable file /sys/fs/cgroup/memory/init.scope/cgroup.event_control
World-Writable file /sys/fs/cgroup/memory/system.slice/cgroup.event_control
World-Writable file /sys/fs/cgroup/memory/cgroup.event_control
World-Writable file /sys/fs/cgroup/memory/user.slice/user-109.slice/cgroup.event_control
World-Writable file /sys/fs/cgroup/memory/user.slice/user-0.slice/session-1.scope/cgroup.event_control
World-Writable file /sys/fs/cgroup/memory/user.slice/user-0.slice/user@0.service/cgroup.event_control
World-Writable file /sys/fs/cgroup/memory/user.slice/user-0.slice/cgroup.event_control
World-Writable file /sys/fs/cgroup/memory/user.slice/user-0.slice/session-6.scope/cgroup.event_control
World-Writable file /sys/fs/cgroup/memory/user.slice/cgroup.event_control
World-Writable file /sys/kernel/security/apparmor/policy/.remove
World-Writable file /sys/kernel/security/apparmor/policy/.replace
World-Writable file /sys/kernel/security/apparmor/policy/.load
World-Writable file /sys/kernel/security/apparmor/.remove
World-Writable file /sys/kernel/security/apparmor/.replace
World-Writable file /sys/kernel/security/apparmor/.load
World-Writable file /sys/kernel/security/apparmor/.ns_name
World-Writable file /sys/kernel/security/apparmor/.ns_level
World-Writable file /sys/kernel/security/apparmor/.ns_stacked
World-Writable file /sys/kernel/security/apparmor/.stacked
World-Writable file /sys/kernel/security/apparmor/.access
World-Writable file /var/crash/.lock
Standard Error:
No Standard Error was produced

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.10_Ensure_no_world_writable_files_exist"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:05.678-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0">
         <cis:and>
            <cis:evidence_test comment="Ensure no world writable files exist" result="fail">
               <cis:evidence_sce exit-code="102" full-path="/home/cis-cat-full/sce/world_writable_files.sh"
                                 href="sce/world_writable_files.sh">
                  <cis:environment_variables>
                     <cis:environment_variable var_name="XCCDF_RESULT_FIXED" var_value="109"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_APPLICABLE" var_value="105"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_INFORMATIONAL" var_value="108"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_UNKNOWN" var_value="104"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_SELECTED" var_value="107"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_PASS" var_value="101"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_ERROR" var_value="103"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_FAIL" var_value="102"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_CHECKED" var_value="106"/>
                  </cis:environment_variables>
                  <cis:stdout>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/init.scope/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/system.slice/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/user.slice/user-109.slice/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/user.slice/user-0.slice/session-1.scope/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/user.slice/user-0.slice/user@0.service/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/user.slice/user-0.slice/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/user.slice/user-0.slice/session-6.scope/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/fs/cgroup/memory/user.slice/cgroup.event_control</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/policy/.remove</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/policy/.replace</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/policy/.load</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/.remove</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/.replace</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/.load</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/.ns_name</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/.ns_level</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/.ns_stacked</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/.stacked</cis:line>
                     <cis:line>World-Writable file /sys/kernel/security/apparmor/.access</cis:line>
                     <cis:line>World-Writable file /var/crash/.lock</cis:line>
                  </cis:stdout>
               </cis:evidence_sce>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout"/>
      <check-content-ref href="sce/world_writable_files.sh"/>
   </check>
</rule-result>
Pass

6.1.11 Ensure no unowned files or directories exist

Description:

Sometimes when administrators delete users from the password file they neglect to remove all files owned by those users from the system.

A new user who is assigned the deleted user's user ID or group ID may then end up "owning" these files, and thus have more access on the system than was intended.

Locate files that are owned by users or groups not listed in the system configuration files, and reset the ownership of these files to some active user on the system as appropriate.

Ensure no unowned files or directories exist -- More
Script: sce/no_unowned_files_and_directories.sh
Standard Output:
No Standard Output was produced
Standard Error:
No Standard Error was produced

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.11_Ensure_no_unowned_files_or_directories_exist"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:08.399-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0">
         <cis:and>
            <cis:evidence_test comment="Ensure no unowned files or directories exist" result="pass">
               <cis:evidence_sce exit-code="101"
                                 full-path="/home/cis-cat-full/sce/no_unowned_files_and_directories.sh"
                                 href="sce/no_unowned_files_and_directories.sh">
                  <cis:environment_variables>
                     <cis:environment_variable var_name="XCCDF_RESULT_FIXED" var_value="109"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_APPLICABLE" var_value="105"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_INFORMATIONAL" var_value="108"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_UNKNOWN" var_value="104"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_SELECTED" var_value="107"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_PASS" var_value="101"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_ERROR" var_value="103"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_FAIL" var_value="102"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_CHECKED" var_value="106"/>
                  </cis:environment_variables>
               </cis:evidence_sce>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout"/>
      <check-content-ref href="sce/no_unowned_files_and_directories.sh"/>
   </check>
</rule-result>
Pass

6.1.12 Ensure no ungrouped files or directories exist

Description:

Sometimes when administrators delete users or groups from the system they neglect to remove all files owned by those users or groups.

A new user who is assigned the deleted user's user ID or group ID may then end up "owning" these files, and thus have more access on the system than was intended.

Locate files that are owned by users or groups not listed in the system configuration files, and reset the ownership of these files to some active user on the system as appropriate.

Ensure no ungrouped files or directories exist -- More
Script: sce/no_ungrouped_files_and_directories.sh
Standard Output:
No Standard Output was produced
Standard Error:
No Standard Error was produced

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.1.12_Ensure_no_ungrouped_files_or_directories_exist"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.063-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0">
         <cis:and>
            <cis:evidence_test comment="Ensure no ungrouped files or directories exist" result="pass">
               <cis:evidence_sce exit-code="101"
                                 full-path="/home/cis-cat-full/sce/no_ungrouped_files_and_directories.sh"
                                 href="sce/no_ungrouped_files_and_directories.sh">
                  <cis:environment_variables>
                     <cis:environment_variable var_name="XCCDF_RESULT_FIXED" var_value="109"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_APPLICABLE" var_value="105"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_INFORMATIONAL" var_value="108"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_UNKNOWN" var_value="104"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_SELECTED" var_value="107"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_PASS" var_value="101"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_ERROR" var_value="103"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_FAIL" var_value="102"/>
                     <cis:environment_variable var_name="XCCDF_RESULT_NOT_CHECKED" var_value="106"/>
                  </cis:environment_variables>
               </cis:evidence_sce>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <check system="http://open-scap.org/page/SCE">
      <check-import import-name="stdout"/>
      <check-content-ref href="sce/no_ungrouped_files_and_directories.sh"/>
   </check>
</rule-result>

6.2 User and Group Settings

This section provides guidance on securing aspects of the users and groups.

Pass

6.2.1 Ensure password fields are not empty

Description:

An account with an empty password field means that anybody may log in as that user without providing a password.

All accounts must have passwords or be locked to prevent the account from being used by an unauthorized user.

If any accounts in the /etc/shadow file do not have a password, run the following command to lock the account until it can be determined why it does not have a password:

# passwd -l <username>

Also, check to see if the account is logged in and investigate what it is being used for to determine if it needs to be forced off.

Ensure usernames pattern match .+ have shadow parameter password pattern match .+ (string) -- More
Check: All Must Pass
User: root
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ $6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa.
User: daemon
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: bin
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: sys
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: sync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: games
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: man
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: lp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: mail
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: news
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: uucp
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: www-data
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: backup
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: list
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: irc
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: gnats
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: nobody
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: syslog
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: messagebus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: landscape
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: puntawo2
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ $6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0
User: systemd-timesync
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: systemd-network
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: systemd-resolve
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: systemd-bus-proxy
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: uuidd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ !
User: _apt
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: Carol
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ $6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV..
User: Dave
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ $6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10
User: Ellen
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ $6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/
User: Gus
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ $6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1.
User: Alice
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ $6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq.
User: Bob
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ $6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/
User: boss
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ !
User: lightdm
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: whoopsie
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: avahi-autoipd
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: avahi
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: dnsmasq
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: colord
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: speech-dispatcher
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ !
User: hplip
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: kernoops
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: pulse
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: rtkit
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: saned
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *
User: usbmux
CIS-CAT Expected... CIS-CAT Collected...
the Encrypted Password matches the regular expression .+ *

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.1_Ensure_password_fields_are_not_empty"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.169-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.174-06:00"
                    start-time="2017-02-13T20:12:14.162-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure usernames pattern match .+ have shadow parameter password pattern match .+ (string)"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10355"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10351"
                               type="shadow_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10169">
                  <cis:evidence_item itemref="1965">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="root"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$LWHfDOeP$aeLl4cpDGHdKUApCW80GPGrgcLhNPZvcaAS1J4bYRY7rCLhJyNDotiQDBKxUyyevhwziVHRN61P2m0gyLmdOa."
                                         dt="string"
                                         ev=".+"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1966">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="daemon"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1967">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="bin"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1968">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sys"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1969">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="sync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1970">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="games"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1971">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="man"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1972">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1973">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="mail"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1974">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="news"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1975">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uucp"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1976">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1977">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="www-data"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1978">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="backup"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1979">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="list"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1980">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="irc"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1981">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="gnats"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1982">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="nobody"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1983">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="syslog"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1984">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="messagebus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1985">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="landscape"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1986">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="puntawo2"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$1va.uupb$0Hyif6LQnduPhzCupfuLr3TWB.LDXr39rdyfiQAXXYcn/RokDOWUSBKUcR3qqIyvrEdS.GNJSBzmJvSYA8C4d0"
                                         dt="string"
                                         ev=".+"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1987">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-timesync"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1988">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-network"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1989">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-resolve"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1990">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="systemd-bus-proxy"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1991">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="uuidd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1992">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="_apt"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1993">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Carol"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$aGNv6GMB$C3Q2pRS4jS7oksyBvHge6qG9aiZNKSGa79xxggKD.Yzqm.EbLwh5huTvjH/oJZZ6.m0HWejRyc.larLRb8sV.."
                                         dt="string"
                                         ev=".+"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1994">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Dave"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$pqxvn8wD$NVGa7/cyz.5lAMZ2UdDZaLUhiB3SmXUIrMKbYCSKJuFH5vfNDeH/T/SwtMZWKuIz/uBS/UmbPUwCZu.bvPaK10"
                                         dt="string"
                                         ev=".+"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1995">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Ellen"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ujdJoI4M$jwomYS5gfgM.S7UVLUwNNvYLFRN4FOoJcLQIwSbGPmPwZqYM7W2PbfP1IaNrG1B1FD4l3dveF/R5trpPU.Ore/"
                                         dt="string"
                                         ev=".+"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1996">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Gus"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$EjZvDh9A$aknAtYC9hhTbXdZQ6.KvFuPDuqS5kbNoJxgTumIHgI1xYedxbLEUsBQOaxOFgFlMm2AhcDzXF6EdQxZUi1uv1."
                                         dt="string"
                                         ev=".+"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1997">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Alice"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$ZNJyzZVF$zOd7napNgEk1SckTGsAl.cKeCap7ddq02OuNp8oG4PTOVYuOVK6gaUHpt8Ueuz4W2ZCOgKF6a7a6xAbuNcNOq."
                                         dt="string"
                                         ev=".+"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1998">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="Bob"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="$6$cubQcHNC$4CFBSe3Up6H9u81zoYjAiACDkCrsJQPSMw.W4OQyp21rwZl06qvTKl6YV2JHih/trtM3AIwe/p6TjqEZLUIpe/"
                                         dt="string"
                                         ev=".+"
                                         name="password"
                                         op="pattern match"
                                         result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="1999">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="boss"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2000">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="lightdm"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2001">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="whoopsie"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2002">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi-autoipd"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2003">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="avahi"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2004">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="dnsmasq"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2005">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="colord"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2006">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="speech-dispatcher"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="!" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2007">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="hplip"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2008">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="kernoops"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2009">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="pulse"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2010">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="rtkit"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2011">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="saned"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2012">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="username" value="usbmux"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="*" dt="string" ev=".+" name="password" op="pattern match" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-export export-name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:1319"
                       value-id="xccdf_org.cisecurity.benchmarks_value_6.2.1.1_var"/>
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1319"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.2 Ensure no legacy "+" entries exist in /etc/passwd

Description:

The character + in various files used to be markers for systems to insert data from NIS maps at a certain point in a system configuration file. These entries are no longer required on most systems, but may exist in files that have been imported from other platforms.

These entries may provide an avenue for attackers to gain privileged access on the system.

Remove any legacy '+' entries from /etc/passwd if they exist.

Ensure at least one file named /etc/passwd exists and does not match pattern ^\+: -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/passwd does not exist
Pattern: ^\+:
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.2_Ensure_no_legacy__entries_exist_in_etcpasswd"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.190-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.193-06:00"
                    start-time="2017-02-13T20:12:14.184-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/passwd exists and does not match pattern ^\+:"
                               negated="true"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10356"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10352"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2770">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/passwd"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="passwd"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\+:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1320"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.3 Ensure no legacy "+" entries exist in /etc/shadow

Description:

The character + in various files used to be markers for systems to insert data from NIS maps at a certain point in a system configuration file. These entries are no longer required on most systems, but may exist in files that have been imported from other platforms.

These entries may provide an avenue for attackers to gain privileged access on the system.

Remove any legacy '+' entries from /etc/shadow if they exist.

Ensure at least one file named /etc/shadow exists and does not match pattern ^\+: -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/shadow does not exist
Pattern: ^\+:
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.3_Ensure_no_legacy__entries_exist_in_etcshadow"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.196-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.197-06:00"
                    start-time="2017-02-13T20:12:14.193-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/shadow exists and does not match pattern ^\+:"
                               negated="true"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10357"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10353"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2771">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/shadow"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="shadow"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\+:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1321"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.4 Ensure no legacy "+" entries exist in /etc/group

Description:

The character + in various files used to be markers for systems to insert data from NIS maps at a certain point in a system configuration file. These entries are no longer required on most systems, but may exist in files that have been imported from other platforms.

These entries may provide an avenue for attackers to gain privileged access on the system.

Remove any legacy '+' entries from /etc/group if they exist.

Ensure at least one file named /etc/group exists and does not match pattern ^\+: -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/group does not exist
Pattern: ^\+:
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.4_Ensure_no_legacy__entries_exist_in_etcgroup"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.200-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.200-06:00"
                    start-time="2017-02-13T20:12:14.198-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/group exists and does not match pattern ^\+:"
                               negated="true"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10358"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10354"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2772">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^\+:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1322"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.5 Ensure root is the only UID 0 account

Description:

Any account with UID 0 has superuser privileges on the system.

This access must be limited to only the default root account and only from the system console. Administrative access must be through an unprivileged account using an approved mechanism as noted in Item 5.6 Ensure access to the su command is restricted.

Remove any users other than root with UID 0 or assign them a new UID if appropriate.

Ensure at least one file named /etc/passwd exists and does not match pattern ^(?!root:)[^:]*:[^:]*:0 -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/passwd does not exist
Pattern: ^(?!root:)[^:]*:[^:]*:0
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.5_Ensure_root_is_the_only_UID_0_account"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.211-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.212-06:00"
                    start-time="2017-02-13T20:12:14.200-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Ensure at least one file named /etc/passwd exists and does not match pattern ^(?!root:)[^:]*:[^:]*:0"
                               negated="true"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10359"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10355"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2773">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/passwd"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="passwd"/>
                        <cis:evidence_item_pk_field name="pattern" value="^(?!root:)[^:]*:[^:]*:0"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1323"/>
      </check>
   </complex-check>
</rule-result>
Fail

6.2.6 Ensure root PATH Integrity

Description:

The root user can execute any command on the system and could be fooled into executing programs unintentionally if the PATH is not set correctly.

Including the current working directory (.) or other writable directory in root's executable path makes it likely that an attacker can gain superuser access by forcing an administrator operating as root to execute a Trojan horse program.

Correct or justify any items discovered in the Audit step.

All of the following tests or sub-groups must pass:
Linux Custom Object "Root Path Directories Are Owned By UID 0 And Not Writable By Group Or Other" -- Less
CIS-CAT expected every collected file item to exist on the target system, and found 8 items.
File: /usr/local/sbin exists
File: /usr/local/bin exists
File: /usr/sbin exists
File: /usr/bin exists
File: /sbin exists
File: /bin exists
File: /usr/games exists
File: /usr/local/games exists
File: /snap/bin does not exist
All of the following tests or sub-groups must pass:
Linux Custom Object "Root Path Does Not Include "."" -- More
CIS-CAT Expected... CIS-CAT Collected...
the variable's value to not be set to . /usr/local/sbin
the variable's value to not be set to . /usr/local/bin
the variable's value to not be set to . /usr/sbin
the variable's value to not be set to . /usr/bin
the variable's value to not be set to . /sbin
the variable's value to not be set to . /bin
the variable's value to not be set to . /usr/games
the variable's value to not be set to . /usr/local/games
the variable's value to not be set to . /snap/bin
Linux Custom Object "Root Path Does Not Include """ -- More
CIS-CAT Expected... CIS-CAT Collected...
the variable's value to not be set to /usr/local/sbin
the variable's value to not be set to /usr/local/bin
the variable's value to not be set to /usr/sbin
the variable's value to not be set to /usr/bin
the variable's value to not be set to /sbin
the variable's value to not be set to /bin
the variable's value to not be set to /usr/games
the variable's value to not be set to /usr/local/games
the variable's value to not be set to /snap/bin

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.6_Ensure_root_PATH_Integrity"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.485-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.485-06:00"
                    start-time="2017-02-13T20:12:14.213-06:00">
         <cis:and>
            <cis:and>
               <cis:evidence_test check="all" check_existence="all_exist"
                                  comment="Linux Custom Object &#34;Root Path Does Not Include &#34;.&#34;&#34;"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10362"
                                  result="true"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10357"
                                  type="variable_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10171">
                     <cis:evidence_item itemref="2797">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="var_ref"
                                                       value="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:10007"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="/usr/local/sbin" dt="string" ev="." name="value" op="not equal"
                                            result="true"/>
                        <cis:evidence_field cv="/usr/local/bin" dt="string" ev="." name="value" op="not equal"
                                            result="true"/>
                        <cis:evidence_field cv="/usr/sbin" dt="string" ev="." name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/usr/bin" dt="string" ev="." name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/sbin" dt="string" ev="." name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/bin" dt="string" ev="." name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/usr/games" dt="string" ev="." name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/usr/local/games" dt="string" ev="." name="value" op="not equal"
                                            result="true"/>
                        <cis:evidence_field cv="/snap/bin" dt="string" ev="." name="value" op="not equal" result="true"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
               <cis:evidence_test check="all" check_existence="all_exist"
                                  comment="Linux Custom Object &#34;Root Path Does Not Include &#34;&#34;&#34;"
                                  negated="false"
                                  ns="independent"
                                  objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10360"
                                  result="true"
                                  testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10356"
                                  type="variable_test">
                  <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10170">
                     <cis:evidence_item itemref="2799">
                        <cis:evidence_item_pk status="exists">
                           <cis:evidence_item_pk_field name="var_ref"
                                                       value="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:10006"/>
                        </cis:evidence_item_pk>
                        <cis:evidence_field cv="/usr/local/sbin" dt="string" ev="" name="value" op="not equal"
                                            result="true"/>
                        <cis:evidence_field cv="/usr/local/bin" dt="string" ev="" name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/usr/sbin" dt="string" ev="" name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/usr/bin" dt="string" ev="" name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/sbin" dt="string" ev="" name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/bin" dt="string" ev="" name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/usr/games" dt="string" ev="" name="value" op="not equal" result="true"/>
                        <cis:evidence_field cv="/usr/local/games" dt="string" ev="" name="value" op="not equal"
                                            result="true"/>
                        <cis:evidence_field cv="/snap/bin" dt="string" ev="" name="value" op="not equal" result="true"/>
                     </cis:evidence_item>
                  </cis:evidence_state>
               </cis:evidence_test>
            </cis:and>
            <cis:evidence_test check="all" check_existence="all_exist"
                               comment="Linux Custom Object &#34;Root Path Directories Are Owned By UID 0 And Not Writable By Group Or Other&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10364"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10358"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2809">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/local/sbin"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/local/sbin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2810">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/local/bin"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/local/bin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2811">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2812">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/bin"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/bin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2813">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/sbin"/>
                        <cis:evidence_item_pk_field name="path" value="/sbin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2814">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/bin"/>
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2815">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2816">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/local/games"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/local/games"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2817">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/snap/bin"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <complex-check operator="AND">
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1324"/>
         </check>
         <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
            <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                               name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1325"/>
         </check>
      </complex-check>
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1326"/>
      </check>
   </complex-check>
</rule-result>
Fail

6.2.7 Ensure all users' home directories exist

Description:

Users can be defined in /etc/passwd without a home directory or with a home directory that does not actually exist.

If the user's home directory does not exist or is unassigned, the user will be placed in "/" and will not be able to write any files or have local environment variables set.

If any users' home directories do not exist, create them and make sure the respective user owns the directory. Users without an assigned home directory should be removed or assigned a home directory as appropriate.

Linux Custom Object "All User Home Directories Exist" -- Less
CIS-CAT expected every collected file item to exist on the target system, and found 22 items.
File: /usr/sbin exists
File: /bin exists
File: /dev exists
File: /usr/games exists
File: /var/cache/man exists
File: /var/spool/lpd does not exist
File: /var/mail exists
File: /var/spool/news does not exist
File: /var/spool/uucp does not exist
File: /bin exists
File: /var/www does not exist
File: /var/backups exists
File: /var/list does not exist
File: /run/ircd does not exist
File: /var/lib/gnats does not exist
File: /nonexistent does not exist
File: /home/syslog does not exist
File: /run/dbus exists
File: /var/lib/landscape exists
File: /home/puntawo2 exists
File: /run/systemd exists
File: /run/systemd/netif exists
File: /run/systemd/resolve does not exist
File: /run/systemd exists
File: /run/uuidd exists
File: /nonexistent does not exist
File: /var/lib/lightdm exists
File: /nonexistent does not exist
File: /var/lib/avahi-autoipd exists
File: /run/avahi-daemon exists
File: /var/lib/misc exists
File: /var/lib/colord exists
File: /run/speech-dispatcher does not exist
File: /run/hplip does not exist
File: / exists
File: /run/pulse does not exist
File: /proc exists
File: /var/lib/saned does not exist
File: /var/lib/usbmux does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.7_Ensure_all_users_home_directories_exist"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:15.324-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:15.324-06:00"
                    start-time="2017-02-13T20:12:14.494-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="all_exist"
                               comment="Linux Custom Object &#34;All User Home Directories Exist&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10366"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10359"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2880">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2881">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/bin"/>
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2882">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/dev"/>
                        <cis:evidence_item_pk_field name="path" value="/dev"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2883">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2884">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/cache/man"/>
                        <cis:evidence_item_pk_field name="path" value="/var/cache/man"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2885">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/spool/lpd"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2886">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/mail"/>
                        <cis:evidence_item_pk_field name="path" value="/var/mail"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2887">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/spool/news"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2888">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/spool/uucp"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2889">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/bin"/>
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2890">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/www"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2891">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/backups"/>
                        <cis:evidence_item_pk_field name="path" value="/var/backups"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2892">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/list"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2893">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/ircd"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2894">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/gnats"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2895">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/nonexistent"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2896">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/home/syslog"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2897">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/dbus"/>
                        <cis:evidence_item_pk_field name="path" value="/run/dbus"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2898">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/landscape"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/landscape"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2899">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/home/puntawo2"/>
                        <cis:evidence_item_pk_field name="path" value="/home/puntawo2"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2900">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2901">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/systemd/netif"/>
                        <cis:evidence_item_pk_field name="path" value="/run/systemd/netif"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2902">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/systemd/resolve"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2903">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2904">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/uuidd"/>
                        <cis:evidence_item_pk_field name="path" value="/run/uuidd"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2905">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/nonexistent"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2906">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/lightdm"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2907">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/nonexistent"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2908">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/avahi-autoipd"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/avahi-autoipd"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2909">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/avahi-daemon"/>
                        <cis:evidence_item_pk_field name="path" value="/run/avahi-daemon"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2910">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/misc"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/misc"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2911">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/colord"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/colord"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2912">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/speech-dispatcher"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2913">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/hplip"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2914">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/"/>
                        <cis:evidence_item_pk_field name="path" value="/"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2915">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/pulse"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2916">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/proc"/>
                        <cis:evidence_item_pk_field name="path" value="/proc"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2917">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/saned"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2918">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/usbmux"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1327"/>
      </check>
   </complex-check>
</rule-result>
Fail

6.2.8 Ensure users' home directories permissions are 750 or more restrictive

Description:

While the system administrator can establish secure permissions for users' home directories, the users can easily override these.

Group or world-writable user home directories may enable malicious users to steal or modify other users' data or to gain another user's system privileges.

Making global modifications to user home directories without alerting the user community can result in unexpected outages and unhappy users. Therefore, it is recommended that a monitoring policy be established to report user file permissions and determine the action to be taken in accordance with site policy.

Linux Custom Object "No User Home Directories Have Permissions ----w-rwx" -- Less
File: /usr/sbin
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /bin
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /dev
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /usr/games
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/cache/man
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/spool/lpd
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /var/mail
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false true
File: /var/spool/news
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /var/spool/uucp
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /bin
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/www
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /var/backups
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/list
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /run/ircd
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /var/lib/gnats
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /nonexistent
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /home/syslog
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /run/dbus
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/lib/landscape
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /home/puntawo2
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /run/systemd
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /run/systemd/netif
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /run/systemd/resolve
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /run/systemd
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /run/uuidd
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /nonexistent
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /var/lib/lightdm
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false false
the file's Other Execute to be set to false false
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /nonexistent
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /var/lib/avahi-autoipd
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /run/avahi-daemon
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/lib/misc
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/lib/colord
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /run/speech-dispatcher
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /run/hplip
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /run/pulse
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /proc
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Read to be set to false true
the file's Other Execute to be set to false true
the file's Other Write to be set to false false
the file's Group Write to be set to false false
File: /var/lib/saned
CIS-CAT expected any number of matching file items to be collected, and found 0 items.
File: /var/lib/usbmux
CIS-CAT expected any number of matching file items to be collected, and found 0 items.

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.8_Ensure_users_home_directories_permissions_are_750_or_more_restrictive"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:16.033-06:00"
             version="1"
             weight="1.0">
   <result>fail</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:16.034-06:00"
                    start-time="2017-02-13T20:12:15.328-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Linux Custom Object &#34;No User Home Directories Have Permissions ----w-rwx&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10368"
                               result="false"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10360"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10174">
                  <cis:evidence_item itemref="2981">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2982">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/bin"/>
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2983">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/dev"/>
                        <cis:evidence_item_pk_field name="path" value="/dev"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2984">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="path" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2985">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/cache/man"/>
                        <cis:evidence_item_pk_field name="path" value="/var/cache/man"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2986">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/spool/lpd"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2987">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/mail"/>
                        <cis:evidence_item_pk_field name="path" value="/var/mail"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="gwrite" op="equals" result="false"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2988">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/spool/news"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2989">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/spool/uucp"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2990">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/bin"/>
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2991">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/www"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2992">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/backups"/>
                        <cis:evidence_item_pk_field name="path" value="/var/backups"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2993">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/list"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2994">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/ircd"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2995">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/gnats"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2996">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2997">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/home/syslog"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2998">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/dbus"/>
                        <cis:evidence_item_pk_field name="path" value="/run/dbus"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2999">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/landscape"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/landscape"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3000">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/home/puntawo2"/>
                        <cis:evidence_item_pk_field name="path" value="/home/puntawo2"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3001">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3002">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/systemd/netif"/>
                        <cis:evidence_item_pk_field name="path" value="/run/systemd/netif"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3003">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/systemd/resolve"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3004">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3005">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/uuidd"/>
                        <cis:evidence_item_pk_field name="path" value="/run/uuidd"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3006">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3007">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/lightdm"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oread" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="oexec" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3008">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3009">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/avahi-autoipd"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/avahi-autoipd"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3010">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/run/avahi-daemon"/>
                        <cis:evidence_item_pk_field name="path" value="/run/avahi-daemon"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3011">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/misc"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/misc"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3012">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/colord"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/colord"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3013">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/speech-dispatcher"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3014">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/hplip"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3015">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/"/>
                        <cis:evidence_item_pk_field name="path" value="/"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3016">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/run/pulse"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3017">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/proc"/>
                        <cis:evidence_item_pk_field name="path" value="/proc"/>
                        <cis:evidence_item_pk_field name="filename" value="NIL"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oread" op="equals" result="false"/>
                     <cis:evidence_field cv="true" dt="boolean" ev="false" name="oexec" op="equals" result="false"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3018">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/saned"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="3019">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/usbmux"/>
                        <cis:evidence_item_pk_field name="path" xsi:nil="true"/>
                        <cis:evidence_item_pk_field name="filename" xsi:nil="true"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1328"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.9 Ensure users own their home directories

Description:

The user home directory is space defined for the particular user to set local environment variables and to store personal files.

Since the user is accountable for files stored in the user home directory, the user must be the owner of the directory.

Change the ownership of any home directories that are not owned by the defined user to the correct user.

Ensure 'cat /etc/passwd | awk -F: '{ print $1 " " $3 " " $6 }' | while read user uid dir; do if [ $uid -ge 1000 -a -d "$dir" -a $user != "nfsnobody" ]; then owner=$(stat -L -c "%U" "$dir"); if [ "$owner" != "$user" ]; then echo "The home directory ($dir) -- More
Check: At Least One Must Pass
Command: cat /etc/passwd | awk -F: '{ print $1 " " $3 " " $6 }' | while read user uid dir; do if [ $uid -ge 1000 -a -d "$dir" -a $user != "nfsnobody" ]; then owner=$(stat -L -c "%U" "$dir"); if [ "$owner" != "$user" ]; then echo "The home directory ($dir) of user $user is owned by $owner."; fi; fi; done
Line Selection: .+
CIS-CAT Expected (At least one of)... CIS-CAT Collected...
the Std. Output does not match the regular expression .+

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.9_Ensure_users_own_their_home_directories"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:16.073-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:16.073-06:00"
                    start-time="2017-02-13T20:12:16.049-06:00">
         <cis:and>
            <cis:evidence_test check="at least one" check_existence="at_least_one_exists"
                               comment="Ensure 'cat /etc/passwd | awk -F: '{ print $1 &#34; &#34; $3 &#34; &#34; $6 }' | while read user uid dir; do if [ $uid -ge 1000 -a -d &#34;$dir&#34; -a $user != &#34;nfsnobody&#34; ]; then owner=$(stat -L -c &#34;%U&#34; &#34;$dir&#34;); if [ &#34;$owner&#34; != &#34;$user&#34; ]; then echo &#34;The home directory ($dir) "
                               negated="true"
                               ns="cmd"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10370"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10361"
                               type="shellcommand_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10176">
                  <cis:evidence_item entity_check="at least one" itemref="3020">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="command"
                                                    value="cat /etc/passwd | awk -F: '{ print $1 &#34; &#34; $3 &#34; &#34; $6 }' | while read user uid dir; do if [ $uid -ge 1000 -a -d &#34;$dir&#34; -a $user != &#34;nfsnobody&#34; ]; then owner=$(stat -L -c &#34;%U&#34; &#34;$dir&#34;); if [ &#34;$owner&#34; != &#34;$user&#34; ]; then echo &#34;The home directory ($dir) of user $user is owned by $owner.&#34;; fi; fi; done"/>
                        <cis:evidence_item_pk_field name="line_selection" value=".+"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="" dt="string" ev=".+" name="stdout_line" op="pattern match" result="false"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1329"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.10 Ensure users' dot files are not group or world writable

Description:

While the system administrator can establish secure permissions for users' "dot" files, the users can easily override these.

Group or world-writable user configuration files may enable malicious users to steal or modify other users' data or to gain another user's system privileges.

Making global modifications to users' files without alerting the user community can result in unexpected outages and unhappy users. Therefore, it is recommended that a monitoring policy be established to report user dot file permissions and determine the action to be taken in accordance with site policy.

Linux Custom Object "No User Dot Files Have Permissions ----w--w-" -- More
File: /var/lib/lightdm/.Xauthority
CIS-CAT Expected... CIS-CAT Collected...
the file's Other Write to be set to false false
the file's Group Write to be set to false false

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.10_Ensure_users_dot_files_are_not_group_or_world_writable"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:11.795-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:11.795-06:00"
                    start-time="2017-02-13T20:12:11.284-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Linux Custom Object &#34;No User Dot Files Have Permissions ----w--w-&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10371"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10362"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10177">
                  <cis:evidence_item itemref="2111">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/var/lib/lightdm/.Xauthority"/>
                        <cis:evidence_item_pk_field name="path" value="/var/lib/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value=".Xauthority"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="owrite" op="equals" result="true"/>
                     <cis:evidence_field cv="false" dt="boolean" ev="false" name="gwrite" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1330"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.11 Ensure no users have .forward files

Description:

The .forward file specifies an email address to forward the user's mail to.

Use of the .forward file poses a security risk in that sensitive data may be inadvertently transferred outside the organization. The .forward file also poses a risk as it can be used to execute commands that may perform unintended actions.

Making global modifications to users' files without alerting the user community can result in unexpected outages and unhappy users. Therefore, it is recommended that a monitoring policy be established to report user .forward files and determine the action to be taken in accordance with site policy.

Linux Custom Object "No User Home Directories Contain .forward Files" -- More
CIS-CAT did not expect to collect any file items, and found 0 items.
File: /usr/sbin/.forward does not exist
File: /bin/.forward does not exist
File: /dev/.forward does not exist
File: /usr/games/.forward does not exist
File: /var/cache/man/.forward does not exist
File: /var/spool/lpd/.forward does not exist
File: /var/mail/.forward does not exist
File: /var/spool/news/.forward does not exist
File: /var/spool/uucp/.forward does not exist
File: /bin/.forward does not exist
File: /var/www/.forward does not exist
File: /var/backups/.forward does not exist
File: /var/list/.forward does not exist
File: /var/run/ircd/.forward does not exist
File: /var/lib/gnats/.forward does not exist
File: /nonexistent/.forward does not exist
File: /home/syslog/.forward does not exist
File: /var/run/dbus/.forward does not exist
File: /var/lib/landscape/.forward does not exist
File: /home/puntawo2/.forward does not exist
File: /run/systemd/.forward does not exist
File: /run/systemd/netif/.forward does not exist
File: /run/systemd/resolve/.forward does not exist
File: /run/systemd/.forward does not exist
File: /run/uuidd/.forward does not exist
File: /nonexistent/.forward does not exist
File: /var/lib/lightdm/.forward does not exist
File: /nonexistent/.forward does not exist
File: /var/lib/avahi-autoipd/.forward does not exist
File: /var/run/avahi-daemon/.forward does not exist
File: /var/lib/misc/.forward does not exist
File: /var/lib/colord/.forward does not exist
File: /var/run/speech-dispatcher/.forward does not exist
File: /var/run/hplip/.forward does not exist
File: //.forward does not exist
File: /var/run/pulse/.forward does not exist
File: /proc/.forward does not exist
File: /var/lib/saned/.forward does not exist
File: /var/lib/usbmux/.forward does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.11_Ensure_no_users_have_.forward_files"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:12.083-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:12.083-06:00"
                    start-time="2017-02-13T20:12:11.796-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Linux Custom Object &#34;No User Home Directories Contain .forward Files&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10373"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10363"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2152">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2153">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2154">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/dev"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2155">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2156">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/cache/man"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2157">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/lpd"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2158">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/mail"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2159">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/news"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2160">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/uucp"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2161">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2162">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/www"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2163">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/backups"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2164">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/list"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2165">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/ircd"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2166">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/gnats"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2167">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2168">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/home/syslog"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2169">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/dbus"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2170">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/landscape"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2171">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/home/puntawo2"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2172">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2173">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd/netif"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2174">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd/resolve"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2175">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2176">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/uuidd"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2177">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2178">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2179">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2180">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/avahi-autoipd"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2181">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/avahi-daemon"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2182">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/misc"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2183">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/colord"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2184">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/speech-dispatcher"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2185">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/hplip"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2186">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2187">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/pulse"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2188">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/proc"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2189">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/saned"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2190">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/usbmux"/>
                        <cis:evidence_item_pk_field name="filename" value=".forward"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1331"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.12 Ensure no users have .netrc files

Description:

The .netrc file contains data for logging into a remote host for file transfers via FTP.

The .netrc file presents a significant security risk since it stores passwords in unencrypted form. Even if FTP is disabled, user accounts may have brought over .netrc files from other systems which could pose a risk to those systems.

Making global modifications to users' files without alerting the user community can result in unexpected outages and unhappy users. Therefore, it is recommended that a monitoring policy be established to report user .netrc files and determine the action to be taken in accordance with site policy.

Linux Custom Object "No User Home Directories Contain .netrc Files" -- More
CIS-CAT did not expect to collect any file items, and found 0 items.
File: /usr/sbin/.netrc does not exist
File: /bin/.netrc does not exist
File: /dev/.netrc does not exist
File: /usr/games/.netrc does not exist
File: /var/cache/man/.netrc does not exist
File: /var/spool/lpd/.netrc does not exist
File: /var/mail/.netrc does not exist
File: /var/spool/news/.netrc does not exist
File: /var/spool/uucp/.netrc does not exist
File: /bin/.netrc does not exist
File: /var/www/.netrc does not exist
File: /var/backups/.netrc does not exist
File: /var/list/.netrc does not exist
File: /var/run/ircd/.netrc does not exist
File: /var/lib/gnats/.netrc does not exist
File: /nonexistent/.netrc does not exist
File: /home/syslog/.netrc does not exist
File: /var/run/dbus/.netrc does not exist
File: /var/lib/landscape/.netrc does not exist
File: /home/puntawo2/.netrc does not exist
File: /run/systemd/.netrc does not exist
File: /run/systemd/netif/.netrc does not exist
File: /run/systemd/resolve/.netrc does not exist
File: /run/systemd/.netrc does not exist
File: /run/uuidd/.netrc does not exist
File: /nonexistent/.netrc does not exist
File: /var/lib/lightdm/.netrc does not exist
File: /nonexistent/.netrc does not exist
File: /var/lib/avahi-autoipd/.netrc does not exist
File: /var/run/avahi-daemon/.netrc does not exist
File: /var/lib/misc/.netrc does not exist
File: /var/lib/colord/.netrc does not exist
File: /var/run/speech-dispatcher/.netrc does not exist
File: /var/run/hplip/.netrc does not exist
File: //.netrc does not exist
File: /var/run/pulse/.netrc does not exist
File: /proc/.netrc does not exist
File: /var/lib/saned/.netrc does not exist
File: /var/lib/usbmux/.netrc does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.12_Ensure_no_users_have_.netrc_files"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:12.427-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:12.428-06:00"
                    start-time="2017-02-13T20:12:12.090-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Linux Custom Object &#34;No User Home Directories Contain .netrc Files&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10375"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10364"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2231">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2232">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2233">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/dev"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2234">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2235">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/cache/man"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2236">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/lpd"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2237">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/mail"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2238">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/news"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2239">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/uucp"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2240">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2241">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/www"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2242">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/backups"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2243">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/list"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2244">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/ircd"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2245">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/gnats"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2246">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2247">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/home/syslog"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2248">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/dbus"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2249">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/landscape"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2250">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/home/puntawo2"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2251">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2252">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd/netif"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2253">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd/resolve"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2254">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2255">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/uuidd"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2256">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2257">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2258">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2259">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/avahi-autoipd"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2260">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/avahi-daemon"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2261">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/misc"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2262">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/colord"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2263">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/speech-dispatcher"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2264">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/hplip"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2265">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2266">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/pulse"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2267">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/proc"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2268">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/saned"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2269">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/usbmux"/>
                        <cis:evidence_item_pk_field name="filename" value=".netrc"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1332"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.13 Ensure users' .netrc Files are not group or world accessible

Description:

While the system administrator can establish secure permissions for users' .netrc files, the users can easily override these.

.netrc files may contain unencrypted passwords that may be used to attack other systems.

Making global modifications to users' files without alerting the user community can result in unexpected outages and unhappy users. Therefore, it is recommended that a monitoring policy be established to report user .netrc file permissions and determine the action to be taken in accordance with site policy.

Linux Custom Object "No User .netrc Files Have Permissions ---rwxrwx" -- More
No testable evidence items were collected. Any number of items (including none) are expected for this test. In this case, when no evidence items are collected, the test Passes.

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.13_Ensure_users_.netrc_Files_are_not_group_or_world_accessible"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:12.713-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:12.713-06:00"
                    start-time="2017-02-13T20:12:12.435-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="any_exist"
                               comment="Linux Custom Object &#34;No User .netrc Files Have Permissions ---rwxrwx&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10377"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10365"
                               type="file_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10182"/>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1333"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.14 Ensure no users have .rhosts files

Description:

While no .rhosts files are shipped by default, users can easily create them.

This action is only meaningful if .rhosts support is permitted in the file /etc/pam.conf. Even though the .rhosts files are ineffective if support is disabled in /etc/pam.conf, they may have been brought over from other systems and could contain information useful to an attacker for those other systems.

Making global modifications to users' files without alerting the user community can result in unexpected outages and unhappy users. Therefore, it is recommended that a monitoring policy be established to report user .rhosts files and determine the action to be taken in accordance with site policy.

Linux Custom Object "No User Home Directories Contain .rhost Files" -- More
CIS-CAT did not expect to collect any file items, and found 0 items.
File: /usr/sbin/.rhosts does not exist
File: /bin/.rhosts does not exist
File: /dev/.rhosts does not exist
File: /usr/games/.rhosts does not exist
File: /var/cache/man/.rhosts does not exist
File: /var/spool/lpd/.rhosts does not exist
File: /var/mail/.rhosts does not exist
File: /var/spool/news/.rhosts does not exist
File: /var/spool/uucp/.rhosts does not exist
File: /bin/.rhosts does not exist
File: /var/www/.rhosts does not exist
File: /var/backups/.rhosts does not exist
File: /var/list/.rhosts does not exist
File: /var/run/ircd/.rhosts does not exist
File: /var/lib/gnats/.rhosts does not exist
File: /nonexistent/.rhosts does not exist
File: /home/syslog/.rhosts does not exist
File: /var/run/dbus/.rhosts does not exist
File: /var/lib/landscape/.rhosts does not exist
File: /home/puntawo2/.rhosts does not exist
File: /run/systemd/.rhosts does not exist
File: /run/systemd/netif/.rhosts does not exist
File: /run/systemd/resolve/.rhosts does not exist
File: /run/systemd/.rhosts does not exist
File: /run/uuidd/.rhosts does not exist
File: /nonexistent/.rhosts does not exist
File: /var/lib/lightdm/.rhosts does not exist
File: /nonexistent/.rhosts does not exist
File: /var/lib/avahi-autoipd/.rhosts does not exist
File: /var/run/avahi-daemon/.rhosts does not exist
File: /var/lib/misc/.rhosts does not exist
File: /var/lib/colord/.rhosts does not exist
File: /var/run/speech-dispatcher/.rhosts does not exist
File: /var/run/hplip/.rhosts does not exist
File: //.rhosts does not exist
File: /var/run/pulse/.rhosts does not exist
File: /proc/.rhosts does not exist
File: /var/lib/saned/.rhosts does not exist
File: /var/lib/usbmux/.rhosts does not exist

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.14_Ensure_no_users_have_.rhosts_files"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:13.134-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:13.134-06:00"
                    start-time="2017-02-13T20:12:12.718-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Linux Custom Object &#34;No User Home Directories Contain .rhost Files&#34;"
                               negated="false"
                               ns="unix"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10379"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10366"
                               type="file_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2389">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/usr/sbin"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2390">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2391">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/dev"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2392">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/usr/games"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2393">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/cache/man"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2394">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/lpd"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2395">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/mail"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2396">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/news"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2397">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/spool/uucp"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2398">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/bin"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2399">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/www"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2400">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/backups"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2401">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/list"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2402">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/ircd"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2403">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/gnats"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2404">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2405">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/home/syslog"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2406">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/dbus"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2407">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/landscape"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2408">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/home/puntawo2"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2409">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2410">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd/netif"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2411">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd/resolve"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2412">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/systemd"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2413">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/run/uuidd"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2414">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2415">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/lightdm"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2416">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/nonexistent"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2417">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/avahi-autoipd"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2418">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/avahi-daemon"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2419">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/misc"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2420">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/colord"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2421">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/speech-dispatcher"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2422">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/hplip"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2423">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2424">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/run/pulse"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2425">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/proc"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2426">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/saned"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2427">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="path" value="/var/lib/usbmux"/>
                        <cis:evidence_item_pk_field name="filename" value=".rhosts"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1334"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.15 Ensure all groups in /etc/passwd exist in /etc/group

Description:

Over time, system administration errors and changes can lead to groups being defined in /etc/passwd but not in /etc/group.

Groups defined in the /etc/passwd file but not in the /etc/group file pose a threat to system security since group permissions are not properly managed.

Analyze the output of the Audit step above and perform the appropriate action to correct any discrepancies found.

Linux Custom Object "All Groups In /etc/passwd Exist In /etc/group" -- More
CIS-CAT expected every collected text file content item to exist on the target system, and found 39 items.
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:1:[^:]*$
Match Text: daemon:x:1:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:2:[^:]*$
Match Text: bin:x:2:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:3:[^:]*$
Match Text: sys:x:3:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:60:[^:]*$
Match Text: games:x:60:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:12:[^:]*$
Match Text: man:x:12:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:7:[^:]*$
Match Text: lp:x:7:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:8:[^:]*$
Match Text: mail:x:8:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:9:[^:]*$
Match Text: news:x:9:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:10:[^:]*$
Match Text: uucp:x:10:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:13:[^:]*$
Match Text: proxy:x:13:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:33:[^:]*$
Match Text: www-data:x:33:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:34:[^:]*$
Match Text: backup:x:34:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:38:[^:]*$
Match Text: list:x:38:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:39:[^:]*$
Match Text: irc:x:39:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:41:[^:]*$
Match Text: gnats:x:41:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:65534:[^:]*$
Match Text: nogroup:x:65534:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:104:[^:]*$
Match Text: syslog:x:104:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:106:[^:]*$
Match Text: messagebus:x:106:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:109:[^:]*$
Match Text: landscape:x:109:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:1000:[^:]*$
Match Text: puntawo2:x:1000:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:113:[^:]*$
Match Text: systemd-timesync:x:113:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:114:[^:]*$
Match Text: systemd-network:x:114:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:115:[^:]*$
Match Text: systemd-resolve:x:115:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:116:[^:]*$
Match Text: systemd-bus-proxy:x:116:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:101:[^:]*$
Match Text: uuidd:x:101:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:65534:[^:]*$
Match Text: nogroup:x:65534:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:119:[^:]*$
Match Text: lightdm:x:119:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:121:[^:]*$
Match Text: whoopsie:x:121:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:122:[^:]*$
Match Text: avahi-autoipd:x:122:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:123:[^:]*$
Match Text: avahi:x:123:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:65534:[^:]*$
Match Text: nogroup:x:65534:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:126:[^:]*$
Match Text: colord:x:126:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:29:[^:]*$
Match Text: audio:x:29:pulse
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:7:[^:]*$
Match Text: lp:x:7:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:65534:[^:]*$
Match Text: nogroup:x:65534:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:127:[^:]*$
Match Text: pulse:x:127:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:129:[^:]*$
Match Text: rtkit:x:129:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:130:[^:]*$
Match Text: saned:x:130:
File: /etc/group exists
Pattern: ^[^:]*:[^:]*:46:[^:]*$
Match Text: plugdev:x:46:puntawo2

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.15_Ensure_all_groups_in_etcpasswd_exist_in_etcgroup"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:13.600-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:13.600-06:00"
                    start-time="2017-02-13T20:12:13.140-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="all_exist"
                               comment="Linux Custom Object &#34;All Groups In /etc/passwd Exist In /etc/group&#34;"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10381"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10367"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2468">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:1:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="daemon:x:1:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2469">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:2:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="bin:x:2:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2470">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:3:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="sys:x:3:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2471">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:60:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="games:x:60:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2472">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:12:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="man:x:12:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2473">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:7:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="lp:x:7:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2474">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:8:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="mail:x:8:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2475">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:9:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="news:x:9:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2476">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:10:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="uucp:x:10:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2477">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:13:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="proxy:x:13:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2478">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:33:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="www-data:x:33:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2479">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:34:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="backup:x:34:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2480">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:38:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="list:x:38:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2481">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:39:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="irc:x:39:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2482">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:41:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="gnats:x:41:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2483">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:65534:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="nogroup:x:65534:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2484">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:104:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="syslog:x:104:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2485">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:106:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="messagebus:x:106:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2486">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:109:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="landscape:x:109:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2487">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:1000:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="puntawo2:x:1000:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2488">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:113:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="systemd-timesync:x:113:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2489">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:114:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="systemd-network:x:114:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2490">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:115:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="systemd-resolve:x:115:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2491">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:116:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="systemd-bus-proxy:x:116:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2492">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:101:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="uuidd:x:101:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2493">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:65534:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="nogroup:x:65534:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2494">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:119:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="lightdm:x:119:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2495">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:121:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="whoopsie:x:121:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2496">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:122:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="avahi-autoipd:x:122:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2497">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:123:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="avahi:x:123:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2498">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:65534:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="nogroup:x:65534:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2499">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:126:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="colord:x:126:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2500">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:29:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="audio:x:29:pulse"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2501">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:7:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="lp:x:7:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2502">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:65534:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="nogroup:x:65534:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2503">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:127:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="pulse:x:127:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2504">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:129:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="rtkit:x:129:"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2505">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:130:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="saned:x:130: "/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
                  <cis:evidence_item itemref="2506">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^[^:]*:[^:]*:46:[^:]*$"/>
                        <cis:evidence_item_pk_field name="instance" value="1"/>
                        <cis:evidence_item_pk_field name="text" value="plugdev:x:46:puntawo2"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1335"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.16 Ensure no duplicate UIDs exist

Description:

Although the useradd program will not let you create a duplicate User ID (UID), it is possible for an administrator to manually edit the /etc/passwd file and change the UID field.

Users must be assigned unique UIDs for accountability and to ensure appropriate access protections.

Based on the results of the audit script, establish unique UIDs and review all files owned by the shared UIDs to determine which UID they are supposed to belong to.

Linux Custom Object "Check For Duplicate UIDs" -- More
CIS-CAT Expected... CIS-CAT Collected...
the variable's value to be set to 41 41

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.16_Ensure_no_duplicate_UIDs_exist"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.037-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.037-06:00"
                    start-time="2017-02-13T20:12:13.608-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Linux Custom Object &#34;Check For Duplicate UIDs&#34;"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10383"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10368"
                               type="variable_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10186">
                  <cis:evidence_item itemref="2550">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="var_ref"
                                                    value="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:10017"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="41" dt="int" ev="41" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1336"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.17 Ensure no duplicate GIDs exist

Description:

Although the groupadd program will not let you create a duplicate Group ID (GID), it is possible for an administrator to manually edit the /etc/group file and change the GID field.

User groups must be assigned unique GIDs for accountability and to ensure appropriate access protections.

Based on the results of the audit script, establish unique GIDs and review all files owned by the shared GID to determine which group they are supposed to belong to.

Linux Custom Object "Check For Duplicate GIDs" -- More
CIS-CAT Expected... CIS-CAT Collected...
the variable's value to be set to 80 80

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.17_Ensure_no_duplicate_GIDs_exist"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.091-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.091-06:00"
                    start-time="2017-02-13T20:12:14.040-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Linux Custom Object &#34;Check For Duplicate GIDs&#34;"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10385"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10369"
                               type="variable_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10187">
                  <cis:evidence_item itemref="2633">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="var_ref"
                                                    value="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:10019"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="80" dt="int" ev="80" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1337"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.18 Ensure no duplicate user names exist

Description:

Although the useradd program will not let you create a duplicate user name, it is possible for an administrator to manually edit the /etc/passwd file and change the user name.

If a user is assigned a duplicate user name, it will create and have access to files with the first UID for that username in /etc/passwd. For example, if "test4" has a UID of 1000 and a subsequent "test4" entry has a UID of 2000, logging in as "test4" will use UID 1000. Effectively, the UID is shared, which is a security problem.

Based on the results of the audit script, establish unique user names for the users. File ownerships will automatically reflect the change as long as the users have unique UIDs.

Linux Custom Object "Check For Duplicate User Names" -- More
CIS-CAT Expected... CIS-CAT Collected...
the variable's value to be set to 48 48

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.18_Ensure_no_duplicate_user_names_exist"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.119-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.119-06:00"
                    start-time="2017-02-13T20:12:14.091-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Linux Custom Object &#34;Check For Duplicate User Names&#34;"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10387"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10370"
                               type="variable_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10188">
                  <cis:evidence_item itemref="2684">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="var_ref"
                                                    value="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:10021"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="48" dt="int" ev="48" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1338"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.19 Ensure no duplicate group names exist

Description:

Although the groupadd program will not let you create a duplicate group name, it is possible for an administrator to manually edit the /etc/group file and change the group name.

If a group is assigned a duplicate group name, it will create and have access to files with the first GID for that group in /etc/group. Effectively, the GID is shared, which is a security problem.

Based on the results of the audit script, establish unique names for the user groups. File group ownerships will automatically reflect the change as long as the groups have unique GIDs.

Linux Custom Object "Check For Duplicate Group Names" -- More
CIS-CAT Expected... CIS-CAT Collected...
the variable's value to be set to 80 80

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.19_Ensure_no_duplicate_group_names_exist"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.155-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.155-06:00"
                    start-time="2017-02-13T20:12:14.119-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="at_least_one_exists"
                               comment="Linux Custom Object &#34;Check For Duplicate Group Names&#34;"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10389"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10371"
                               type="variable_test">
               <cis:evidence_state steref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:ste:10189">
                  <cis:evidence_item itemref="2767">
                     <cis:evidence_item_pk status="exists">
                        <cis:evidence_item_pk_field name="var_ref"
                                                    value="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:var:10023"/>
                     </cis:evidence_item_pk>
                     <cis:evidence_field cv="80" dt="int" ev="80" name="value" op="equals" result="true"/>
                  </cis:evidence_item>
               </cis:evidence_state>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1339"/>
      </check>
   </complex-check>
</rule-result>
Pass

6.2.20 Ensure shadow group is empty

Description:

The shadow group allows system programs which require access the ability to read the /etc/shadow file. No users should be assigned to the shadow group.

Any users assigned to the shadow group would be granted read access to the /etc/shadow file. If attackers can gain read access to the /etc/shadow file, they can easily run a password cracking program against the hashed passwords to break them. Other security information that is stored in the /etc/shadow file (such as expiration) could also be useful to subvert additional user accounts.

Remove all users from the shadow group, and change the primary group of any users with shadow as their primary group.

Linux Custom Object "Shadow Group is Empty" -- More
CIS-CAT did not expect to collect any matching text file content items, and found 0 items.
File: /etc/group does not exist
Pattern: ^shadow:[^:]*:[^:]*:[^:]+$
Match Text: No match found

Show Rule Result XML
<rule-result xmlns="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             idref="xccdf_org.cisecurity.benchmarks_rule_6.2.20_Ensure_shadow_group_is_empty"
             role="full"
             severity="unknown"
             time="2017-02-13T20:12:14.183-06:00"
             version="1"
             weight="1.0">
   <result>pass</result>
   <metadata>
      <cis:evidence xmlns:cis="http://benchmarks.cisecurity.org/evidence/1.0"
                    end-time="2017-02-13T20:12:14.183-06:00"
                    start-time="2017-02-13T20:12:14.177-06:00">
         <cis:and>
            <cis:evidence_test check="all" check_existence="none_exist"
                               comment="Linux Custom Object &#34;Shadow Group is Empty&#34;"
                               negated="false"
                               ns="independent"
                               objref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:obj:10391"
                               result="true"
                               testref="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:tst:10372"
                               type="textfilecontent54_test">
               <cis:evidence_object>
                  <cis:evidence_item itemref="2769">
                     <cis:evidence_item_pk status="does not exist">
                        <cis:evidence_item_pk_field name="filepath" value="/etc/group"/>
                        <cis:evidence_item_pk_field name="path" value="/etc"/>
                        <cis:evidence_item_pk_field name="filename" value="group"/>
                        <cis:evidence_item_pk_field name="pattern" value="^shadow:[^:]*:[^:]*:[^:]+$"/>
                     </cis:evidence_item_pk>
                  </cis:evidence_item>
               </cis:evidence_object>
            </cis:evidence_test>
         </cis:and>
      </cis:evidence>
   </metadata>
   <complex-check operator="AND">
      <check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
         <check-content-ref href="CIS_Ubuntu_Linux_16.04_LTS_Benchmark_v1.0.0-oval.xml"
                            name="oval:org.cisecurity.benchmarks.o_canonical_ubuntu_linux:def:1340"/>
      </check>
   </complex-check>
</rule-result>